Replicate to multiple data centers using 1 replication agent | Community
Skip to main content
Level 2
August 20, 2018
Solved

Replicate to multiple data centers using 1 replication agent

  • August 20, 2018
  • 2 replies
  • 827 views

We have to repilcate content to multiple data centers (around 35) using 1 replication agent. Since it is a tedious task to enable/disable each replication agent, requirement is to create 1 page which would list all the replication agents or data-centers, and on 1 click all the replication agents would be enabled or disabled. Can anybody provide suggestions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

you can create a utility (sling servlet) which will list all the replication agents from /etc/replication/agents.author/ , servlet will be creating a list along with checkbox where you can select all(by clicking select all checkbox) or individual replication agent and based on selection you can delete enabled property from replication agent's jcr:content node or create enable property in order to enable replication agent.

Example if enabled property with true value is present at /etc/replication/agents.author/publish/jcr:content , then only this replication agent will be enabled.

JCR node for replication agent if agent is enabled

JCR node for replication agent when agent is not enabled

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 20, 2018

Hi,

you can create a utility (sling servlet) which will list all the replication agents from /etc/replication/agents.author/ , servlet will be creating a list along with checkbox where you can select all(by clicking select all checkbox) or individual replication agent and based on selection you can delete enabled property from replication agent's jcr:content node or create enable property in order to enable replication agent.

Example if enabled property with true value is present at /etc/replication/agents.author/publish/jcr:content , then only this replication agent will be enabled.

JCR node for replication agent if agent is enabled

JCR node for replication agent when agent is not enabled

Arun Patidar
john_caryAuthor
Level 2
August 22, 2018

Thanks Arun.