Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8892781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:05:37+00:00 2026-06-14T23:05:37+00:00

I am looking into high availability for tomcat. I read that you can do

  • 0

I am looking into high availability for tomcat.
I read that you can do cluster in Tomcat and as load balancer you can use Apache http.
I can not understand the following:
Is Apache http that is supposed to be the module for load balancing supposed to be installed on a separate machine than Tomcat server?
E.g. If I have 3 tomcat servers to be a cluster, is http supposed to be installed in all 3? Or in an other server?
Also what is the difference if I used Linux facilities for high availability?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:05:39+00:00Added an answer on June 14, 2026 at 11:05 pm

    To have HA, the users need to always have a response from the DNS name / IP Address they make a request to.

    There are multiple ways to achieve this, and some are not even mutually exclusive.

    The first tool in the box, so to say, is DNS round robin.

    This is where your DNS entry does not have a single IP address, but a list of IP addresses. Each query of your DNS record will return the list in a different order. Client browsers that are DNS round robin aware will try the first entry and fall back to the others in order. Client browsers that are not DNS round robin aware will only try the first entry. That acts as a sort of load balancer… and for the DNS round robin aware client applications, you get a form of automatic fail-over.

    The next tool in the box is a load balancer, such as Apache HTTPD or Nginix. These act as the front end that the client sees. They are state aware (hopefully you configure them to be), so they know which of your Tomcat servers are up and which are down, and they route the client requests to servers that have capacity and are up.

    So if you want HA. You start by clustering your Tomcat servers… That will most likely require a session store for the cluster… so you use a DB to hold the session store… then you cluster that DB in case of failover… then your but a load balancer in front of the Tomcat instances… then you add a second load balancer in case of a failure in the load balancer… then you use DNS round robin to balance between the load balancers…

    You might use ARP broadcast IP address take-over to quickly replace the load balancers in place of, or in addition to DNS round robin…

    Then you start to think about geo-redundancy… so you go to the pharmacy and buy a bottle of aspirin!

    Before I forget, there is nothing that says you can’t do this all on the same hardware… just you run the risk of processes stealing CPU/memory/disk and also the risk of a hardware failure.

    The most basic resilient HA that you can get is two machines, both running the DB cluster, both running the Tomcat cluster, both running the Load Balancer, and both configured as DNS round-robin entries for the DNS name of the application

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

By looking into the Open JPA website i've found that i can log the
I am looking into making a c# program that will read in the logcat
I am currently looking into how I can manage a high number of bids
I am looking into designing an application that can run on multiple platforms (i.e.
This is a very high-level question. I'm looking for insight into this problem that
Looking into developing new startup with potential of hopefully having high volume. Initial idea
I'm looking for a library that can send messages from a process. It needs
In our current use of memcached, we are running into problems in a high
I am looking into using High Charts, but I want to populate the data
I’m looking into an architecture for high scale web performance application (theoretical at this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.