switch node to master after 65 seconds of missing adverts

Arek Czechowski <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <CAB+WGBw0UNYP8Gw90m-7ncVOYMrEMoeb+gQYEOmZb3QqSFdCHw@mail.gmail.com>
hi - i'm pretty new to keeplaived, and honestly confused about some
options, could u help me plz

i have 2 machines serving traffic, and I have keepalived to switch ip
address between them in case of crash

problem is that my hosting company wants me to switch the ip making
http get to some address (using curl for example) - and beacause it's
a hussle for them, and takes some time - there is a rate limit - i can
do it only once a minute. If i make a get faster i'll get some code
error - so I'd have to check for error in script in loop, and i'm not
sure the notify_master script is executed in background or it blocks
keepalived daemon - then I'd have to stop this script running if old
master comes back to life - looks like a mess for me - unless i'm
missing something.

So what i need is to tell keepalived to switch node to  master only
when old master is missing for  65 seconds. Seems like simplest way to
work with this restriction - and I can live with this kind of
downtime.

What config option (or options) can I use to get this?

advert_int 65 ?
preempt_delay 65?

Or if anybody could think of better solution for my case?

Thanks in advance
Arek

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.