Software load balancer configuration using the Apache Web Server
Now, both the Liferay Portal server nodes are ready. As a next step, we need to configure the Apache Web Server to connect with both the Liferay Portal nodes and also distribute the load on both the Liferay Portal nodes. The Apache Web Server provides many options to connect with the Liferay Portal Tomcat server. But there are three options which are more popular. Let's understand these options and the scenarios in which they are best suitable.
Load balancer configuration using mod_jk
This option allows us to configure the load balancer using the mod_jk
module of the Apache Web server. Internally, the mod_jk
module connects with the Liferay Portal Tomcat server using the AJP protocol. Using this option, the Apache Web Server distributes all requests on the AJP port of Liferay Portal Tomcat servers. Let's learn how to configure the software load balancer using this option.
Download and copy the
mod_jk
module in the<APACHE_HOME...