Skip to content

Commit

Permalink
rechagne readme and license file
Browse files Browse the repository at this point in the history
  • Loading branch information
arstercz committed May 25, 2017
1 parent 4b4f4e5 commit b33ec63
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 arster

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ perl-libwww-perl
perl-JSON
```

## Backgroud
## Background

We often don't use `masterha_manager` to make a auto mysql failover, because of the network instability(switch, cable or network card), for example, restart the host network card which the `masterha_manager` running on, then we know the MySQL is alive. From this aspect, we cannot determine whether MySQL master is dead or not depend only 1 check point.

Expand All @@ -34,12 +34,12 @@ Fortunately, We can use consul cluster features to check mysql health with multi
+----------------------+ watch
| consul-template | -------> < mysqlxxx.tpl > ---> <mysqlxxx.conf>
+----------------------+
|
| changed
|
+--------------------------+
| masterha_manager_consul |
+--------------------------+
|
| changed
|
+--------------------------+
| masterha_manager_consul |
+--------------------------+
```

Expand Down Expand Up @@ -114,6 +114,7 @@ perl checkmysql --conf db.cnf --verbose --tag mysql3308 --token dcb5b583-cd36-d3
2017/05/25 10:11:13 [DEBUG] (logging) enabling syslog on LOCAL5
```

mysqlxxx.tpl template file:
```
# node3308
{{ range ls "mysql/mysql3308" }}
Expand Down

0 comments on commit b33ec63

Please sign in to comment.