留言板

Liferay clustering

Kapil Burange,修改在9 年前。

Liferay clustering

New Member 帖子: 4 加入日期: 14-9-4 最近的帖子
I am going with horizontal clustering. Below are the steps that I have followed for clustering.

1. I have installed Liferay CE 6.2 on two machines.
2. I have set up Apache HTTP server in front of Liferay cluster.
3. Both liferay tomcat instances are pointing to the same database.
4. If both of my tomcat instances are running and I enter valid user credentials, it is again redirecting me to the login page.
5. When one of my tomcat is in stopped state and only one is running, it allows me to login with the same user credentials and takes me to the home page of logged in user.

I want to know, does clustering is supported in liferay 6.2 community edition ? If yes, please provide me the configuration that I need to do.

Regards,
Kapil
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Liferay clustering

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Kapil,

for using the right configuration of all actors involved in clustering, please read this:

https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/liferay-clustering

Additionally, seems your are accessing to different nodes each time and, as session is not being replicated, you have to login again. For this you have two possibilities:

  • Enable session replication (You have to read your webapp server documentation)
  • Enable sticky sessions (you have to read how to configure it from your load balancer)


Hope it helps...
thumbnail
Olaf Kock,修改在9 年前。

RE: Liferay clustering

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
Juan Gonzalez:
  • Enable session replication (You have to read your webapp server documentation)
  • Enable sticky sessions (you have to read how to configure it from your load balancer)


Of these, go with sticky sessions. They're the best solution for the vast majority of installations. Session replication typically comes with additional surprises and doesn't fully solve the problems that you expect it to solve (e.g. you'll have significant overhead, limiting the performance of your cluster)