Expand my Community achievements bar.

SOLVED

Setting up Replication Agent when publish instances share same MongoB

Avatar

Level 3

We will be setting up one author and two publishers. One MongoDB for author, One MongoDB for both publisers with a replication set. In other words, Pub1 and Pub2 will be reading from the same DB. This is per recommended deployment from Adobe, and confirmed with Adobe consultant,

Question is around replication agent. We could have configure one agent that updates the publish environment via Pub1. But what if Pub1 is down. The consultant told us that there is a way to configure your replication agent with two URLs. THe first one will be taken, if that one doesn't repond the second one will be used to replicate.

However, I cannot find any details on how to do this. Anyone here done this before? I know I could also use a loadbalancer. But I'd like to hear solutions where you configure failover via the replication agent.

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

When you configure the replication agent, you can add multiple target URLs by adding them into the single "target address" field, separated by comma (","). In case the first target fails, the second (third, fourth, ...) is tried.

Jörg

View solution in original post

11 Replies

Avatar

Correct answer by
Employee Advisor

When you configure the replication agent, you can add multiple target URLs by adding them into the single "target address" field, separated by comma (","). In case the first target fails, the second (third, fourth, ...) is tried.

Jörg

Avatar

Level 3

Hi, sorry to get back to this, but the option you suggested doesn't seem to work for me. I've got it configured as follows right now:

http://localhost:4503/bin/receive?sling:authRequestLogin=1,http://localhost:4504/bin/receive?sling:a...

When I bring down the pub instance on 4503, the queue gets blocked and doesn't process the request to 4504.

Did I put the comma at the wrong location?

Cheers,

Katrien

Avatar

Level 3

Thanks Jorg. Is there any documentation online that support this?

Avatar

Level 3

No one?

I've been told by an Adobe consultant that there is a way to configure it that way. The configuration proposed to me doesn't work. I tried Daycare, but they too have no clue. It's pretty vital, in my opinion, that you can configure a replication agent the way I desire, when using master databases.

Avatar

Level 10

jcbsktrn1 wrote...

Thanks Jorg. Is there any documentation online that support this?

 

Filled document request to update. The internal reference is DOC-4650

Avatar

Level 10

Katrien wrote...

No one?

I've been told by an Adobe consultant that there is a way to configure it that way. The configuration proposed to me doesn't work. I tried Daycare, but they too have no clue. It's pretty vital, in my opinion, that you can configure a replication agent the way I desire, when using master databases.

 

It is supported feature to have multiple target URLS for replication  and should work. Otherwise would consider as bug.  Could you please send me offline the daycare ticket number? 

Avatar

Employee Advisor

Another option would be to add a loadbalancer between author and publish, which handles the replication. The loadbalancer will always route the request to a running publish instance.

Jörg

Avatar

Level 3

Hi Jorg, that would indeed be a solution and we will use that solution if it cannot be configured any other way. However, both the consultant and you (see above) have told me that you can configure using multiple targets, are you now saying that it's not possible? Adding another loadbalancer just complicates the architecture and I want to keep it simple :)

Avatar

Level 3

Hey thanks Sham, I will send you the daycare ticket as a message.

Avatar

Level 10

Katrien wrote...

Hey thanks Sham, I will send you the daycare ticket as a message.

 

Your settings are correct & I have demonstrated in video at [1],  Probably you might not waited for a retry timeout. I have put internal notes on ticket & case owner will take care of rest. 

[1]    http://aemfaq.blogspot.com/2014/07/replication-agent-with-multiple-target.html

Avatar

Level 3

Thanks Sham,

I have still issues with my replication agent, but I managed to replicate to the failover at least once. I think there are some other issues with my setup as well. The timeout feature is indeed the missing piece of information. Thanks for mentioning that.

Cheers, Katrien