Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

we have a jee web application running on apache tomcat , we need to deploy this application on production environment and we decided to use failover structure so we have one server active and another one passive and each of them contains tomcat server , what we need to know is how a to tell the passive server to handle coming requests when active server down or : how passive tomcat will run after active tomcat down ? we are using windows server 2008 R2.

Thanks in advance.

share|improve this question
    
Are you using same windows server with two instances of Tomcat or two windows servers with one instance of Tomcat on each server? –  Serhiy Mar 3 '13 at 5:05
    
I have two windows servers and two tomcat servers. –  Radi Mar 3 '13 at 5:47

1 Answer 1

Most likely you can use windows built in failover functionality. Im not very familiar with it, but there are questions like: Windows Service automatic failover

But why do you want active/passive setup rather than two (or more) tomcats working simultaneously in a load balanced setup? IMO this is much better and possibly easier to configure.

Using tomcats session distribution any server can crash at will and no visitor notices any interruption.

You can also easily take one server out of the load balancer, perform work like upgrades, and then reenable it again.

Last but not least, when two servers are not enough to handle the load, you can add more, which i think is harder in a active/passive setup

(I would've just added a comment, since i dont really answer your question, but i lack points and I though I should give you this tip anyway :)

share|improve this answer
    
For this reason : serverfault.com/questions/462316/… –  Radi Mar 3 '13 at 5:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.