Apache Tomcat High Availability and Load Balancing
The objective for High Availability (HA) is to provide failover,so that if one server in the cluster goes down, then the other servers should be able to take over.
The objective for load balancing is to distribute the load among the servers in the cluster and provide the best response time to the end user.
How to implement this solution using Apache Web Server + Mod JK + Tomcat ?

There are so many reference that you can refer, the best one that I found is here. As usual, you can google for another references.
Those in a red box are the important things that you need to figure it out. It takes me a few day just to know that I am using a wrong port number. So please be careful about that so you are not doing the same mistake like I did.
httpd.conf

workers.properties

server.xml
![]()
In this example, I am using localhost as the host. For real application, this should be replace by the IP number of your real server.
That’s it.
Till then…adioss.
p/s: Today is my daughter’s birthday Hana Humaira. Happy birthday dear !
