Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mithun Salinda
Issue with ehcache in the liferay cluster
September 17, 2013 5:08 AM
Answer

Mithun Salinda

Rank: New Member

Posts: 12

Join Date: March 9, 2012

Recent Posts

Hi..

Need help with ehcache in liferay cluster environment.

We are trying to set up liferay cluster with two nodes. And to enable ehcache in the cluster we did below configurations but still cache replication is not happening.
Details are as follows,

In both nodes we use liferay CE-ga3, with Jboss 7(Is it only possible in EE?)
We are using a mysql database, both database and document library are shared for two nodes. And both are working properly.

In the class path(~liferayhome/jboss-7.1.1/standalone/deployments/ROOT.war/WEB-INF/classes) we created a folder called ehcache and copied below files
-hibernate-clustered.xml
-liferay-multi-vm-clustered.xml
-liferay-single-vm.xml
Got above files from ehcache folder in portal-impl.jar file.

And set the paths and following configurations in portal-ext.properties file and placed it in liferay home folder.

=======================================================================
cluster.link.enabled=true
net.sf.ehcache.configurationResourceName=/ehcache/hibernate-clustered.xml
ehcache.single.vm.config.location=/ehcache/liferay-single-vm.xml
ehcache.multi.vm.config.location=/ehcache/liferay-multi-vm-clustered.xml
ehcache.multi.vm.config.location.peerProviderProperties=peerDiscovery=automatic,multicastGroupAddress=230.0.0.1,multicastGroupPort=4446,timeToLive=32
ehcache.bootstrap.cache.loader.factory=net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory
ehcache.cache.event.listener.factory=net.sf.ehcache.distribution.RMICacheReplicatorFactory
ehcache.cache.manager.peer.provider.factory=net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory

documentlibrary configs and db configs
======================================================================

In both nodes cache is working but cache replication wont happen. Ones we edit a page from one node and save the changes, the other node will not update. It uses the old page from that nodes cache. But if we restart that node, it shows the new page with changes. So i think single node cache is happening but cache replication wont happen. What could be the reason for this issue? And what is the normal process to check the ehcache in cluster to make sure it is hapaning?

Thanks for your time,
Gavinda
Alpesh Bhavsar
RE: Issue with ehcache in the liferay cluster
September 19, 2013 11:09 PM
Answer

Alpesh Bhavsar

Rank: New Member

Posts: 17

Join Date: April 18, 2012

Recent Posts

Hi Mithun,

Did you deployed "ehcache-cluster-web.war" ?
Gunta Dalecka
RE: Issue with ehcache in the liferay cluster
November 11, 2013 5:48 AM
Answer

Gunta Dalecka

Rank: New Member

Posts: 4

Join Date: November 7, 2013

Recent Posts

So, did you succeed to configure session replication with Community Edition version of Liferay?
I also face problems with session replication configuration in clustered environment, however we use Liferay bundled with Tomcat. I've described problem details in this post.