Foren

Users not sync between nodes

pierpaolo rai, geändert vor 6 Jahren.

Users not sync between nodes

New Member Beiträge: 12 Beitrittsdatum: 09.11.12 Neueste Beiträge
Hi everyone,
I installed a two nodes portal on Liferay 6.2. The two nodes shares the data folder and the liferay database.
When I search for users in the control panel I've got different result in the two nodes.
In order to obtain the same results I've to syncronize manually the nodes running " Rebuild all search indexes".
Is there a way for syncronize the nodes automatically?
Thanks
thumbnail
Nilesh Gundecha, geändert vor 6 Jahren.

RE: Users not sync between nodes

Regular Member Beiträge: 205 Beitrittsdatum: 01.12.09 Neueste Beiträge
pierpaolo rai:
Hi everyone,
I installed a two nodes portal on Liferay 6.2. The two nodes shares the data folder and the liferay database.
When I search for users in the control panel I've got different result in the two nodes.
In order to obtain the same results I've to syncronize manually the nodes running " Rebuild all search indexes".
Is there a way for syncronize the nodes automatically?
Thanks


To the best of my knowledge, trying to sync the search indexes on 2 nodes might corrupt the indexes. Instead the better design would be to separate out the Search engine in different server and let both the nodes to access this common server.

Regards,
Nilesh Gundecha
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: Users not sync between nodes

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
You need to cluster them. Note: I think clearing all caches should work too, I don't think a reindex is necessary, but I might be wrong here. Anyway, clustering is the way to go:
https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/liferay-clustering
thumbnail
Olaf Kock, geändert vor 6 Jahren.

RE: Users not sync between nodes

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
Christoph Rabel:
You need to cluster them. Note: I think clearing all caches should work too, I don't think a reindex is necessary, but I might be wrong here. Anyway, clustering is the way to go:
https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/liferay-clustering


The link is good: Now that the indexes are out of sync (if OP continues to go with two different indexes, one per node), reindexing is necessary. In fact, when going with a central index (e.g. SOLR), reindexing is necessary as well emoticon
thumbnail
Jorge Díaz, geändert vor 6 Jahren.

RE: Users not sync between nodes

Liferay Master Beiträge: 753 Beitrittsdatum: 09.01.14 Neueste Beiträge
If you want to check the status of your indexes without executing a full reindex, you can always use my portlet «Index Checker».
More info see: https://web.liferay.com/marketplace/-/mp/application/70121999