fix(cluster): set keepalived vrrp_script weight to -20 for instant failover

This commit is contained in:
sorcier committed 2026-11-05 19:38:35 +01:00
1 parent 940ff800ad
commit 3edcabff7c
1 file changed
+1 -1
+1 -1
View File
@@ -342,7 +342,7 @@ class ClusterManager
$conf[] = "vrrp_script chk_asterisk {"; $conf[] = "vrrp_script chk_asterisk {";
$conf[] = " script \"/etc/keepalived/scripts/check_asterisk.sh\""; $conf[] = " script \"/etc/keepalived/scripts/check_asterisk.sh\"";
$conf[] = " interval 2"; $conf[] = " interval 2";
$conf[] = " weight 2"; $conf[] = " weight -20";
$conf[] = " fall 2"; $conf[] = " fall 2";
$conf[] = " rise 2"; $conf[] = " rise 2";
$conf[] = "}"; $conf[] = "}";