Quote:
|
It would be interesting to know more about Heartbeat. Machines going down is a fairly remote reason for a server being unavailable. It's more likely to be due to a jammed-up MySQL database server, hung Apache, or something like that.
|
In that instance, the machine is not down is it? Merely an apache or mysql instance - haproxy deals with that issue.
Quote:
|
You'd always want to be connected to two separate machines on two separate switches, and ideally two separate power strips. I think of the times my sites have gone down it's been the fault of a power strip or switch, and not the machine itself, though that has happened (HD was going, or whatever).
|
Think of heartbeat being a failover for machine availability. Whatever the reason for the machine being unavailable.. so your power strip example is fine, heartbeat works perfectly.
Not only can you do it on seperate power strips and switches, you can do it on seperate data centers in different continents :-) (you just pay for the replication data, but it's pretty small potatoes)
Quote:
For the price I guess it's okay, but it *could* be extra charges per month for failure insurance for a not-so-likely failure.
Interesting concept, though.
|
..I went back and reread your question.
Heartbeat is purely IP level availability checking, so any issue that nocks the machine offline at the IP level (power strip, networking issue) will allow heartbeat to failover the active IP address to a new host.
HAProxy deals with things at a software sever level e.g. hung apache, mysql, etc
You are perfectly right, heartbeat without haproxy would be fairly pointless. Combine the two and you have monitoring and failover at essentially hardware/network level and at the software server level.
HAProxy would handle apache or mysql having issues, not heartbeat.
Do you still see gaps?