Minggu, 12 Januari 2014

Load Balancing Using Httpd2.4 with tomcat instance as Web Server


Load balancing is a computer networking method for distributing workloads across multiple computing resources, such as computers, a computer cluster, network links, central processing units or disk drives. Load balancing aims to optimize resource use, maximize throughput, minimize response time, and avoid overload of any one of the resources. Using multiple components with load balancing instead of a single component may increase reliability through redundancy.


Here is the load balancing scenario in my lab,



  • Apache httpd 2.4 will be use as load Balancer
  • Apache Tomcat 1 will be use as web server 1
  • Apache Tomcat 2 will be use as web server 2


Setting up httpd2.4 as load balancer
Before beginning we have to download the Httpd2.4 that we will use as load balancer. You can download it here.
--> extract it in the specific directory
After that, we will need a connector (mod_jk.so) so Apache httpd2.4 can connect to tomcat instance. You can download it here.
--> copy it to [Apache Installation dir]\modules\ mod_jk.so
The next step is about configuring "httpd.conf" that located in [Apache Installation dir]\ conf\httpd.conf
--> Add this line to that file
here is the slide of my presentation in my college about Load Balancing, download it.
here is the complete project about my load balancing, download it.