Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Setting up Replication on a database that is part of an AlwaysOn Availability Group

$
0
0

We have 2 SQL Servers in an AlwaysOn Availability Group - SRV1 and SRV2

We want to replicate some tables to another SQL machine - SRV4

Replication must work in the event of a failover or if any of the machines (SRV1 or SRV2) goes down.

I followed this blog post: https://blogs.msdn.microsoft.com/alwaysonpro/2014/01/30/setting-up-replication-on-a-database-that-is-part-of-an-alwayson-availability-group/

SRV1 is the Original Publisher

When SRV1 is primary and manual failover to SRV2 is performed, the data is replicated to SRV4. If failover back to SRV1 is performed, data is stil replicated. This works as expected.

If SRV1 is primary and SRV2 is turned off, data is replicated to SRV4 (I had to set Trace flag 1448 to true for this; see https://msdn.microsoft.com/en-us/library/hh403414%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396)

However, if SRV1 is turned off, data isn't replicated to SRV4 anymore (yes, I ran steps 5 and 6 from the tutorial to Redirect the Original Publisher to the AG Listener Name)

Other people are reporting the same issue in the comments - if the Original publisher is turned off, replication stops.

My questions is this: is there any way in which the Replication / AlwaysOn Availability can be set up so that replication continues to work after the Original publisher is turned off?

Regards,

Lucian


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>