Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Florian Marienfeld
Cache web content in cluster
3. April 2013 10:35
Antwort

Florian Marienfeld

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 3. April 2013

Neue 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:
1...
2cluster.link.enabled=true
3cluster.link.autodetect.address=192.168.210.1:22
4ehcache.cluster.link.replication.enabled=true
5net.sf.ehcache.configurationResourceName=/custom_cache/hibernate-clustered.xml
6ehcache.single.vm.config.location=/custom_cache/liferay-single-vm.xml
7ehcache.multi.vm.config.location=/custom_cache/liferay-multi-vm-clustered.xml
8...


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:

 1      <cache
 2                eternal="false"
 3                maxElementsInMemory="100000"
 4                name="com.liferay.portlet.journal.model.impl.JournalArticleImpl"
 5                overflowToDisk="false"
 6                timeToIdleSeconds="600"
 7        >
 8                <cacheEventListenerFactory
 9                        class="com.liferay.portal.cache.ehcache.LiferayCacheEventListenerFactory"
10                        properties="replicatePuts=false,replicateUpdatesViaCopy=false"
11                        propertySeparator=","
12                />
13                <bootstrapCacheLoaderFactory class="com.liferay.portal.cache.ehcache.LiferayBootstrapCacheLoaderFactory" />
14        </cache>


Any ideas how to configure this?

Best regards, thanks in advance?

FLO
Juan Gonzalez
RE: Cache web content in cluster
3. April 2013 08:26
Antwort

Juan Gonzalez

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1855

Eintrittsdatum: 28. Oktober 2008

Neue Beiträge

Liferay version?
Florian Marienfeld
RE: Cache web content in cluster
3. April 2013 10:35
Antwort

Florian Marienfeld

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 3. April 2013

Neue Beiträge

That would be liferay-portal-6.1.1-ce-ga2, i.e. the one bundled with tomcat-7.0.27.