diff --git a/stubs/edge.stub b/stubs/edge.stub index 3d47bc4..ceb975f 100644 --- a/stubs/edge.stub +++ b/stubs/edge.stub @@ -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;