I'm trying to add HA capabilities to our gateway to reach the IPv6 Internet by tunneling over existing IPv4 connection.
I've been tweaking keepalived configuration for some time now and reached a point I haven't been able to pass.
Found here someone who has exactly the same problem I have. The track_script is executed before the tunnel is up, so the master node goes into a FAULT state.
Has anybody found a way to delay the start of the first tarck_script execution?
Any other ideas?
Quotation:
hi,
i need advice how to start keepalived cluster when i want use track_script which monitor process which keepalived starts
i.e.
- keepalived starts and transition to master
- notify script starts process i.e. httpd
- track_script check http://localhost/health route
the problem is that: when keepalived starts, it immediately run track_script before httpd starts - so it falls to FAULT state
any idea howto "wait/delay" first track_script until process from notify starts?
i found
init_fail # assume script initially is in failed state
but i need the opposite. assume script initialy in ok state
keepalived.conf snippet
vrrp_script httpd_check {
script "/usr/local/bin/check_httpd.sh"
interval 1
timeout 5
rise 3
fall 3
}
vrrp_sync_group VG1 {
group {
private
public
}
track_script {
httpd_check
}
notify "/usr/local/bin/genericnotify.sh"
}
Thanks.