Seeking advice on heartbeat technology
I have to set up a classic configuration : a main server and its backup (both gentoo), with replication and failover, in a passive/active configuration.
I had no problem with data sync, DB replication and ip failover, but I'm kind of stuck with the monitoring and trigger of failover and failback.
I took a look at Heartbeat v2 from the Linux-HA projet, but it seems like it's for local configuration, with the two servers being linked by a physical heartbeat cable.
What I'm looking for is an application which can monitor the availablity of some services (httpd, mysqld) on another server, over internet (ping monitoring is not enough). And then trigger a given script on failure.
Same thing with failback : monitor return of services and execute failback script.
(Actually they are in the same data center, but it's easier to assume it happens over internet.)
So, any advice on this? Maybe Heartbeat v2 from linux-HA can actually do this and I misunderstood the doc (I found it kind of though to understand), if so I would be glad if anyone could summarize how to do so. :) If not, I'm open to any application that can achieve this.