Expand my Community achievements bar.

SOLVED

Replicate to multiple data centers using 1 replication agent

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-08-20 at 2.27.42 PM.png

JCR node for replication agent when agent is not enabled

Screen Shot 2018-08-20 at 2.27.04 PM.png



Arun Patidar

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-08-20 at 2.27.42 PM.png

JCR node for replication agent when agent is not enabled

Screen Shot 2018-08-20 at 2.27.04 PM.png



Arun Patidar