Skip to content

Commit

Permalink
Change default behavior for option CHECK_DONORS_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
larrabee committed Sep 16, 2018
1 parent 013fe26 commit 4c81c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ You can override any of the following values in configuration file:
- `WEB_WRITE_TIMEOUT`: Web server request write timeout in milliseconds. Default: `30000`
- `CHECK_RO_ENABLED`: Mark 'read_only' node as available. Default: `false`
- `CHECK_FORCE_ENABLED`: Ignoring the status of the checks and always marking the node as available. Default: `false`
- `CHECK_DONORS_ENABLED`: Mark donors nodes as available. By default donor nodes marking as failed. Default: `false`
- `CHECK_DONORS_ENABLED`: Mark donors nodes as available. Default: `true`
- `CHECK_INTERVAL`: Mysql checks interval in milliseconds. Default: `500`
- `CHECK_FAIL_TIMEOUT`: Mark the node inaccessible if for the specified time (in milliseconds) there were no successful checks. Default: `3000`
- `MYSQL_HOST`: MySQL host address. Default: `127.0.0.1`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func parseFlags() *Config {
flag.IntVar(&config.WebWriteTimeout, "WEB_WRITE_TIMEOUT", 30000, "Web server request write timeout, ms")
flag.BoolVar(&config.CheckROEnabled, "CHECK_RO_ENABLED", false, "Mark 'read_only' node as available")
flag.BoolVar(&config.CheckForceEnabled, "CHECK_FORCE_ENABLED", false, "Ignoring the status of the checks and always marking the node as available")
flag.BoolVar(&config.CheckDonorsEnabled, "CHECK_DONORS_ENABLED", false, "Mark donors nodes as available.")
flag.BoolVar(&config.CheckDonorsEnabled, "CHECK_DONORS_ENABLED", true, "Mark donors nodes as available.")
flag.Int64Var(&config.CheckInterval, "CHECK_INTERVAL", 500, "Mysql checks interval, ms")
flag.Int64Var(&config.CheckFailTimeout, "CHECK_FAIL_TIMEOUT", 3000, "Mark the node inaccessible if for the specified time there were no successful checks, ms")
flag.StringVar(&config.MysqlHost, "MYSQL_HOST", "127.0.0.1", "MySQL host addr")
Expand Down

0 comments on commit 4c81c6d

Please sign in to comment.