Service Failover with heartbeat?
Posted by pmatthaei on Thu 31 Dec 2009 at 10:39
I have got e.g. two servers with Apache and Postfix and a virtual IP (from heartbeat-1). Well, heartbeat is working well and it is simple to deal with complete server outages, but how can I configure heartbeat, so that it also switches the server, if one of the above services fail?
I have read now some more things about pacemaker, openais, heartbeat-2 and so on, which seems to be a bit complicated and no howtos for it..
--
http://www.virtualconcepts.nl/
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
However, the init scripts in Debian (Ubuntu Server 9.10 at least) of corosync+pacemaker cause split brain upon shutdown/restart (https://bugs.launchpad.net/bugs/505981). This makes reliable operation impossible.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
after work with heartbeat2 (xml config file, designed to be edited with GUI, painfull and clumsy, or you can edit by hand (recommended), but heartbeat2 has to be stopped and don't forget to erase backups and md5sums of the config, otherwise it will notice, and worse, heartbeat2 will write to that file status info (like, many lines)),
i discovered keepalived. not top notch doc, but enought to do everything : easily monitor others services (not like heartbeat)), take virtual ips, simple config, simple hooks. works with ipvs, (one config for all : virtual ips, forwarding to services). in case keepalived is used on the box with services, it will check it self.
[ Parent | Reply to this comment ]
http://3molo.blogspot.com
[ Parent | Reply to this comment ]