This commit is contained in:
Mr Chen
2023-11-16 18:02:34 +08:00
parent af660daa30
commit 0bee208795
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ global_defs {
}
vrrp_script chk_mysql_port {
script "{$PLUGIN_PATH}/scripts/chk_mysql.sh"
script "{$SERVER_PATH}/scripts/chk_mysql.sh"
interval 2
weight –5
fall 2
@@ -8,7 +8,7 @@ global_defs {
#检测mysql服务是否在运行。有很多方式,比如进程,用脚本检测等等
vrrp_script chk_mysql_port {
# 这里通过脚本监测
script "{$PLUGIN_PATH}/scripts/chk.sh mysql"
script "{$SERVER_PATH}/scripts/chk.sh mysql"
# 脚本执行间隔,每2s检测一次
interval 2
# 脚本结果导致的优先级变更,检测失败(脚本返回非0)则优先级 -5