Skip to main content
Level 2
Aug 20, 2018 11:29 AM UTC
Solved

Replicate to multiple data centers using 1 replication agent

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.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Aug 20, 2018 12:37 PM UTC

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

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Aug 20, 2018 12:37 PM UTC

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

Translate
Arun Patidar
john_caryAuthor
Level 2
Aug 22, 2018 10:59 AM UTC

Thanks Arun.

Translate