I actually own two linux web servers and I was wondering how I could make them work together in case one goes down.
From what I found, cluster seems to be the closest, because it would replicate the data (for mysql as example) from srv1 to srv2, and vice-versa.
I found a howto on HowToForge, but they talk about 4 servers. After reading, it seems legit, because the cluster need a server to synchronise the data (and a second server in case the first goes down!).
So it's not what I'm looking for, or eventually not in that way.
What I'd like would be that srv1 & srv2 are identical (mysql and apache files) in case srv1 goes down.
The aim at the end will be to build a FailOver (and not a LoadBalancing) system. For the IP, I will switch it manually from my registrar.
Is it possible to do it with only two servers?
Thanks for your help !
(If I was not clear, I'm sorry, It's not really clear in my mind too).