增加 max_fails=1 fail_timeout=10s

This commit is contained in:
iVampireSP.com 2023-02-12 00:29:05 +08:00
parent b616c6ab7b
commit 791f0e2190
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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;