Message Boards

RE: Liferay DXP Indexing and cache not replicating

thumbnail
Lokesh Sharma, modified 5 Years ago.

Liferay DXP Indexing and cache not replicating

Junior Member Posts: 54 Join Date: 7/30/15 Recent Posts

Hi All,

 

I have two node  when I am creating users its not getting created in one of the nodes.

Also , when I try to create page in one node its not visible on other node.

When I cleared database cache after adding page on the other node where the page is not visible it start appearing.

For User when I re index User and organization the users starts to appear.

 

Below is the properties for cluster configuration.


## Cluster Configuration
lucene.replicate.write=true
cluster.link.enabled=true
ehcache.cluster.link.replication.enabled=true
cluster.executor.debug.enabled=true
dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore

cluster.link.channel.properties.control=unicast.xml
cluster.link.channel.properties.transport.0=unicast.xml
ehcache.bootstrap.cache.loader.factory=com.liferay.portal.cache.ehcache.JGroupsBootstrapCacheLoaderFactory
ehcache.cache.event.listener.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicatorFactory
ehcache.cache.manager.peer.provider.factory=net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory
net.sf.ehcache.configurationResourceName.peerProviderProperties=file=/unicast.xml
ehcache.multi.vm.config.location.peerProviderProperties=file=/unicast.xml

 

Kindly suggest on this

 

thumbnail
Jose Jimenez, modified 5 Years ago.

RE: Liferay DXP Indexing and cache not replicating

Regular Member Posts: 176 Join Date: 8/23/12 Recent Posts

Hi Lokesh

you have configured some obsolete properties that are not valid for DXP.

The simplest way to enable a cluster is through multicast, if this kind of comunication is allowed in your infrastructure, you only need to add this property to enable the cluster:

#
# Set this to true to enable the cluster link. This is required if you want
# to cluster indexing and other features that depend on the cluster link.
#
cluster.link.enabled=true

 

Requirement: Your cluster nodes need to be accesible between them through the default network interface

 

Also you need to install a Search engine as Elasticsearch or Solr, and configure it in all the nodes in the cluster,  because Lucene is not available in DXP. 

 

I hope this information helps to configure correctly your cluster.

 

Best regards

thumbnail
Lokesh Sharma, modified 5 Years ago.

RE: Liferay DXP Indexing and cache not replicating

Junior Member Posts: 54 Join Date: 7/30/15 Recent Posts

Thank Jose Jimenez for your reply will so as suggested.