From 791f0e219033680370dd1ba15f52f4734fb5f535 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 12 Feb 2023 00:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20max=5Ffails=3D1=20fail=5Ft?= =?UTF-8?q?imeout=3D10s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stubs/edge.stub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;