Linux HA + Apache Rewrite Rules

Post on 21-May-2015

2,639 views 1 download

Tags:

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)