for Failover and loadbalance of web application HAProxy is one the best tool.
from 1.5 version they are integrating Keepalived application as well, though its still in development its worth to try it.for a test and trail you can visit
ClickHere
for RHEL/Centos
from 1.5 version they are integrating Keepalived application as well, though its still in development its worth to try it.for a test and trail you can visit
ClickHere
for RHEL/Centos