Hi All,I want to get an idea from you all about a scenario that i am facing..So 
i have 2 haproxy servers as load balancer primary and secondary, all the 
connections always go to primary, when primary fails i have keepalived running 
so the connections will fail-over to secondary

Now when i am upgrading i can upgrade secondary without any issues as the 
server never has active connections, but my question is how can i upgrade the 
primary without causing any downtime to my users. 

I have 2 Apache servers running behind the load balancers.
so far i have tried the following on the primary , but have no luck..... 

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT 
--to-destination <public_ip_secondary>:80
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j DNAT 
--to-destination <public_ip_secondary>:443
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -t nat -L -v

my website does not get redirected to the secondary even after i do this....
any suggestions?

Reply via email to