Liferay supports clustering out-of-the-box in the Community Edition (CE) version as well as the Enterprise Edition (EE) version. It is designed to build scalable systems that can be used by large companies with a huge amount of data, so it allows us to run several portal instances on parallel servers. In order to build Liferay clusters, you need to know which components are sensitive to clustering. The clustering process has a huge impact on the following components:
Databases, where Liferay instances keep their data
Documents and media as a folder on the hard drive
Lucene search engine files
Liferay caches
This recipe will go through each point and show you how to cluster Liferay correctly.