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

Replication working really slow and with multiple errors

$
0
0

Hello everyone,

we are building a replicated enviroment between two diferent contries with enormous difficulties. Here are the details

Publisher:  Windows Server 2012 with SP1 SQL Server 2012 with SP1

Subscriber: Windows Server 2012 with SP1 SQL Server 2012 with SP1; Merge replication; pull subscription

We have had many problems trying to implement this configuration. At the moment we are testing the enviroment between two testservers, in order to measure the efficiency of the system. Later we will build the productive enviroment.

In order to test the reliability, we have done various tests, for example, disabling and then enabling the replication many times. The last time we enabled it, while the initial snapshot was being synchronized, the subscriber server went down, breaking the replication. Since then we have had enormous problems, because we get a lot of broken merge agent sessions, trying to synchronize a database that isn't subscribed now, and the replication is REALLY slow (0,5-1 row/sec aprox.). We became at the beginning three errors:

  • The merge process could not query the last sent and received generations.(Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200929)
  • Communication link failure (Source: MSSQLServer, Error number: 10054)
  • TCP Provider: An existing connection was forcibly closed by the remote host.(Source: MSSQLServer, Error number: 10054)

Then we decided to reinitialize the subscription with a new snapshot, and these error popped out:

  • You must rerun snapshot because current snapshot files are obsolete

We have checked that the snapshot is not more that 14 days old. I think that the problem may be old metadata stored in some  tables. Is there a procedure to clean up this old metadata? I've read that the problem may be solved by disabling the replication and  running "sp_mergesubscription_cleanup" command, but I think that these command runs automatically with a schedule if a merge replciation is enabled. I am a little bit confused about it, and any help will be greatly appreciated.

Thanks in advance.

Kind regards,

Carlos




Viewing all articles
Browse latest Browse all 4054

Trending Articles



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