Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1038 from caos/better-keepalived-settings
Browse files Browse the repository at this point in the history
fix: avoid too many KeepaliveD IP failovers
  • Loading branch information
eliobischof authored Aug 10, 2022
2 parents 951f06e + bd97f85 commit 28aa46a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ vrrp_sync_group VG1 {
{{ range $idx, $vip := .VIPs }}vrrp_script chk_{{ vip $vip }} {
script "/usr/local/bin/health --protocol http --ip 127.0.0.1 --port 29999 --path /ready --status 200"
interval 2 # check every 2 seconds
fall 15 # require 15 failures for KO
rise 2 # require 2 successes for OK
fall 5 # require 5 failures for KO
rise 5 # require 5 successes for OK
timeout 5 # time out after 5 seconds
}
vrrp_instance VI_{{ $idx }} {
Expand Down

0 comments on commit 28aa46a

Please # to comment.