Application server load balancing using Apache JServ Protocol

Apache JServ Protocol (AJP) is a binary protocol which is mainly used as an inbound web request load balancer from a web server through to an several application servers. Inbound web requests (Sessions) are redirected to correct application server using a context based routing mechanism.

 

In this example, we are focusing on Apache 2.2 which uses proxy ajp, proxy and proxy balancer as the web server while Apache Tomcat 6.0.20 and Jboss 5.1.0.GA as the application servers.First, let’s configure AJP on Apache Tomcat.

 

By default AJP 1.3 is configured in Apache tomcat and default port is 8009. You may have to change this port accordingly to eliminate port conflict with any other application servers running on the server. Let’s consider port 8011 is available and configuration will be,

  Continue reading