Score:0

Keepalived tracking script - Am I able to reduce the time interval to millisecond?

my flag

im new here!

Ive just set up a cluster which use keepalived to maintain vIP, and haproxy as a loadbalancer proxy. In my keepalived track script configuration, i let keepalived decise the master node by checking haproxy process:

vrrp_script check_haproxy {
    script "killall -0 haproxy"  
    interval 1
    weight 2
}

And they re working fine, but now i want to reduce the time interval lower, 100ms or even 10ms. I did test with the value interval 0.1 or interval 0.01 but when i check log by tailf /var/log/message, the log updates the check script status each 1 second. So i suppose 1 second is the lowest.

Is there a way to lower the interval? Or please could someone tell if there is an alternative way to implement such idea!? Thanks!

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.