This commit is contained in:
Mr Chen
2023-11-16 03:07:51 +08:00
parent 49cfeb7a39
commit 37431a76b6
5 changed files with 25 additions and 6 deletions
@@ -20,7 +20,7 @@ vrrp_script chk_mysql_port {
script "{$PLUGIN_PATH}/scripts/chk_mysql.sh"
#脚本执行间隔,每2s检测一次
interval 2
#脚本结果导致的优先级变更,检测失败(脚本返回非0)则优先级 -5
#脚本结果导致的优先级变更,检测失败(脚本返回非0)则优先级 -5
weight –5
#检测连续2次失败才算确定是真失败。会用weight减少优先级(1-255之间)
fall 2