linux ha + apache rewrite rules
TRANSCRIPT
Topology
• All clients access virtual IP(192.168.42.20)
Scenario 1
• All clients access MASTER through virtual IP(192.168.42.20)• SLAVE is stand-by
Scenario 2
• All clients access SLAVE through virtual IP(192.168.42.20)• MASTER is down
Pre-installation
• PLS install these 2 RPMs and Apache Http web server.
• - yum update (as usual ... )
• - yum install heartbeat drbd kmod-drbd (available in the extras repository)
Master(hearbeat)
Master(hearbeat)
Master(Apache HTTP)
Master(Apache HTTP)
Master(Apache HTTP)
Slave(Heartbeat)
Slave(Heartbeat)
Slave(Apache HTTP)
Slave(Apache HTTP)
Slave(Apache HTTP)