Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Being new to Tomcat infrastructure, I am wondering what an advisable setup would be to have two physical machines each running a tomcat instance to be load-balanced and capable of failover to each other? I have seen lots of posts, but to me it is still not clear what the best implementation would be.

Do I need an Apache webserver to achieve this? Or is it better to use a hardware load-balancer? etc.. How do I get the two tomcat servers to form some kind of failover? any remarks would be highly appreciated.

share|improve this question
Do you want to achieve performance, high availability or both? – ghm1014 Jul 12 '11 at 14:34
The ideal situation would be both :), but our goal is also to keep things as simple as possible, this is normally the difficult when trying to achieve both high-performance and high-availability. But availability seems to be some what more important then performance. – Marco Jul 12 '11 at 14:59
How many servers do you expect use for this solution? Do you have any limitations on that? – ghm1014 Jul 12 '11 at 15:15
2 expect 2 tomcat servers, 2 mysql servers and 1 storage server to start with. All physical servers. It would ok if we could scale later on offcourse :) – Marco Jul 12 '11 at 15:57

share|improve this answer
Thanks nathan, so i assume that the tomcat solution is the most simple way to to achieve my goals? – Marco Jul 12 '11 at 15:58
As far as I can tell from the info you have provided. If you don't need to share sessions then you can ignore the second link. – Nathan Powell Jul 12 '11 at 17:47
So use a combination of the load-balancer with apache http is the way to go. Does the load-balancer also give me fail-over then? – Marco Jul 12 '11 at 18:05
Again, I don't know your app, but… is probably more than enough from they way you have articulated it so far. – Nathan Powell Jul 12 '11 at 19:07

Your Answer


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.