We have 2 Apache Web-Servers which is getting replicated with
rsync command, when the primary host is down, we manually change the IP and make it up.
Now we are trying to find way to do an automatic switchover/failover environment.
- Firstly when I say failover that means when the primary website is down secondary website should start & act as Primary
- Switch over means when we do a manual switch (Testing the ENV) the website Codes should be synced
- For switching IP failover is must ON each server I have 2 Nic available for failover purpose
- How do I sync the Codes after switching or failover vice versa for
eg; If my primary is working fine and I have deployed some new codes on the live (primary) server. Here if I have sync it will make the changes in secondary. But after switching to secondary to live, I have updated the live with the new codes now how do I sync. Do I need to create a
CRONon both the server or is there any way to for simple replication
Is there any solution for doing this?