Databases Reference
In-Depth Information
The basics of load balancing and
clustering with Liferay
Load balancing is a technique to distribute load on multiple systems. In the previous
chapter, we talked about the reference architecture of Liferay-Portal-based solutions.
In our reference architecture, we referred to two levels of load balancing. The first
level of load balancing is done by the hardware load balancer. The hardware load
balancer distributes load among Apache Web Servers. As hardware load balancing
is very speciic to the load balancer appliance, we will not cover it in this topic.
The second level of load balancing is done by Apache web servers. Each Apache
web server performs the role of software load balancer and distributes load among
Liferay Portal application servers. In this chapter, we will focus on Apache Web
Server based software load balancing.
To learn best practices associated with load balancing and clustering of Liferay-
Portal-based solutions, we need to know how to configure the load balancer and
cluster. In the next few sections, we will learn how to configure the cluster of Liferay
Portal servers, which is similar to our reference architecture.
Apache
Web Server
2.x
Ehcache Replication
Session Replication
Search Index Replication
Quartz Job Replication
Liferay
Portal Server 1
(Tomcat 7.x)
Liferay
Portal Server 2
(Tomcat 7.x)
Lucene
Search Index
Repository for
App Server 1
Lucene
Search Index
Repository for
App Server 2
Network
MySQL
Databse
Server 1
Media Repository
(JackRabbit)
 
Search WWH ::




Custom Search