Foren

Cache web content in cluster

thumbnail
Florian Marienfeld, geändert vor 11 Jahren.

Cache web content in cluster

New Member Beiträge: 2 Beitrittsdatum: 03.04.13 Neueste Beiträge
Hi,

we use two liferay nodes in cluster (update: liferay-portal-6.1.1-ce-ga2 on tomcat-7.0.27). When we edit web content in instance A, we don't see the update in instance B. Apparently, the content on B is served from cache. Clearing DB cache on B makes the edit appear. So it seems that the cache on B does not get updated when web content is manipulated on A.

portal-ext.properties:
...
cluster.link.enabled=true
cluster.link.autodetect.address=192.168.210.1:22
ehcache.cluster.link.replication.enabled=true
net.sf.ehcache.configurationResourceName=/custom_cache/hibernate-clustered.xml
ehcache.single.vm.config.location=/custom_cache/liferay-single-vm.xml
ehcache.multi.vm.config.location=/custom_cache/liferay-multi-vm-clustered.xml
...


We see in the logs that UDP a control and a transport channel are established between the two peers. So it seems that in liferay-multi-vm-clustered.xml web content is not configured for cluster cache. We tried adding this, but no difference:

      <cache eternal="false" maxelementsinmemory="100000" name="com.liferay.portlet.journal.model.impl.JournalArticleImpl" overflowtodisk="false" timetoidleseconds="600">
                <cacheeventlistenerfactory class="com.liferay.portal.cache.ehcache.LiferayCacheEventListenerFactory" properties="replicatePuts=false,replicateUpdatesViaCopy=false" propertySeparator="," />
                <bootstrapcacheloaderfactory class="com.liferay.portal.cache.ehcache.LiferayBootstrapCacheLoaderFactory" />
        </cache>


Any ideas how to configure this?

Best regards, thanks in advance?

FLO
thumbnail
Juan Gonzalez, geändert vor 11 Jahren.

RE: Cache web content in cluster

Liferay Legend Beiträge: 3089 Beitrittsdatum: 28.10.08 Neueste Beiträge
Liferay version?
thumbnail
Florian Marienfeld, geändert vor 11 Jahren.

RE: Cache web content in cluster

New Member Beiträge: 2 Beitrittsdatum: 03.04.13 Neueste Beiträge
That would be liferay-portal-6.1.1-ce-ga2, i.e. the one bundled with tomcat-7.0.27.