Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Cluster Setup using Replicated DB instead of Clustered DB -Asset Pub Is
Hi everyone,My team is currently running a setup where we have:
We've tried reindexing (only removes deleted entries, never updating new entries), restarting, refreshing the caches, etc. But still am unable to get the asset publishers updated. We're still unsure of the cause - the database might be the point of difference, but we've compared the DB and it sees like they're the same (despite using replication and not clustered).
Anyone has any experience with this setup and any workarounds to get the Asset Publisher in DR working?
(Note: Same thing happens if the update/creation was done in DR, Prod's Asset Publisher does not update with it.)
- A Liferay Cluster consisting of - 2 Production App Servers and 1 DR App Server
- A Database Cluster (3 MySQL Nodes) serving Production App Servers
- A Replicated Database serving the DR App Server
We've tried reindexing (only removes deleted entries, never updating new entries), restarting, refreshing the caches, etc. But still am unable to get the asset publishers updated. We're still unsure of the cause - the database might be the point of difference, but we've compared the DB and it sees like they're the same (despite using replication and not clustered).
Anyone has any experience with this setup and any workarounds to get the Asset Publisher in DR working?
(Note: Same thing happens if the update/creation was done in DR, Prod's Asset Publisher does not update with it.)
Xue Rui Loh:
We're still unsure of the cause - the database might be the point of difference, but we've compared the DB and it sees like they're the same (despite using replication and not clustered).
Anyone has any experience with this setup and any workarounds to get the Asset Publisher in DR working?
Asset Publisher filters through use of the full-text-index, e.g. Elasticsearch (assuming you're on a current version). If you have replicated the index as well instead of creating an ES cluster, you'll have to make sure that the other location updates the index after the database replication has been done, not before.
Plus, so that documents are available everywhere: Did you replicate your Document Library as well? There's a lot more than just the database to take care of when clustering. And if you go through a nonstandard way, you better know exactly what you're doing...
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™