Nick Ryan wrote:
If you haven't already seen it on undeadly.org this might be what you're after:

http://spootnik.org/hoststated/hoststated_introduction.html

Cheers
This means having a third machine.
If its OK with you you can indeed use hoststated (with 2 tables containing 1 host each):

table slave {
        check ...
        host $slavehost
}
table master {
        check ...
        host $masterhost
}
service http {
        virtual ip ...
        table master
        backup table slave
}

Otherwise you can also use sysutils/monit to monitor your HTTP server and increase the demote counter in case of HTTP failure. Which would seem simpler and more to the point in your scenario (and you keep only two machines).

Reply via email to