Legacy Knowledge Base
Published Jun. 30, 2025

How to replicate the Elasticsearch data when creating an Active-Passive Liferay environment?

Written By

Jorge Diaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

We are creating an Active-Passive Liferay environment, where the Liferay data from the filesystem and database of the active servers are replicated to the passive nodes of an external data center.

We also want to replicate the Elasticsearch data to the passive nodes, is there any way to have all Elasticsearch data of the passive data center up to date?

Environment

  • Any DXP installation using Elasticsearch 6 or 7

Resolution

In order to cover your use case, the best alternative would be to configure the cross-cluster replication (CCR) functionality at the Elasticsearch level. This functionality replicates Elasticsearch indexes that are in different clusters in different data centers.
You have more information about Cross-cluster replication on the following Elasticsearch documentation page:

Installation instructions can be found on this page:

Note: This Elasticsearch functionality would require purchasing the x-pack module or the Liferay Enterprise Search add-on.

Configuration of the CCR module in Liferay as of DXP 7.1

For Enterprise Search customers, as of DXP 7.1, Liferay also offers a cross-cluster replication plugin, which, based on the CCR functionality provided by Elasticsearch, allows you to configure the functionality from the Liferay user interface.

For more information on the CCR module of Liferay DXP 7.1, you can read the following articles:

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base