This commit is contained in:
midoks
2023-10-28 18:50:52 +08:00
parent ad9ab2d7af
commit 7254b9b862
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ global_defs {
}
vrrp_script chk_mysql_port { #检测mysql服务是否在运行。有很多方式,比如进程,用脚本检测等等
script "{$SERVER_PATH}/mdserver-web/plugins/keepalived/scripts/chk_mysql.sh" #这里通过脚本监测
script "{$PLUGIN_PATH}/scripts/chk_mysql.sh" #这里通过脚本监测
interval 2 #脚本执行间隔,每2s检测一次
weight –5 #脚本结果导致的优先级变更,检测失败(脚本返回非0)则优先级 -5
fall 2 #检测连续2次失败才算确定是真失败。会用weight减少优先级(1-255之间)