增加 max_fails=1 fail_timeout=10s
This commit is contained in:
parent
b616c6ab7b
commit
791f0e2190
@ -192,10 +192,12 @@ while (true) {
|
||||
|
||||
if ($node['type'] == 'master') {
|
||||
if (count($nodes) <= 2) {
|
||||
$temp_conf .= ' backup';
|
||||
$temp_conf .= ' backup ';
|
||||
}
|
||||
}
|
||||
|
||||
$temp_conf .= ' max_fails=1 fail_timeout=10s ';
|
||||
|
||||
$temp_conf .= ";\n";
|
||||
|
||||
echo $temp_conf.PHP_EOL;
|
||||
|
Loading…
Reference in New Issue
Block a user