I want to be able to upgrade my hardware at any time without interruption in my web app i.e. switch off one of the computers at any time, swap/upgrade it, plug it back in, and set it up so it gets everything back, including all the changes to disk that happened to the other computer as well, while the wep app continued to run as normal on the other computer. And vice versa.
So basically, I wanna be able to do an across-the-board failover replication of my server.
What is the easiest way of making this happen, and still work properly?
And besides the easiest way, can this also be done at the web app level, so I can use/try different app servers (Glassfish, JBoss, etc.) for each computer, or must it be the same app server, (e.g. Glassfish+Glassfish, or JBoss+JBoss)? I'm not tied to any app server.