Score:0

keepalived Delayed start of track_script

cn flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.