Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

max_concurrent_merge queue view Expand / Collapse
Author
Message
Posted Friday, October 11, 2013 2:47 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, April 07, 2014 8:21 AM
Points: 17, Visits: 106
Good Day All

We have multiple publications on the same DB resulting in deadlock on the merge system tables due to the amount of subscriptions we have connecting to the server.
(not best practice/supported but nothing we can do about it)

We have been told to configure a max_concurrent_merge setting to limit the concurrent subscription connections.

When configured any connections over the max value get queued and then get processed as other subscriptions get processed.

My concern is that the polling interval is quite low for this publication and we might end up with the queue that is continuously growing if the subscriptions cannot be processed fast enough.

Is there a way to view the length of the queue if we do configure this for a publication?

Best Regards
Post #1503919
Posted Friday, October 25, 2013 7:32 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, April 07, 2014 8:21 AM
Points: 17, Visits: 106
In case anyone is looking for the solution.

The below query would just monitor the waits for the sessions and just ensure that that does not spiral out of control.

SELECT *
FROM sys.dm_tran_locks
WHERE request_owner_type = 'SESSION'
AND resource_description LIKE '%ReplicationMergeAgent%'
AND request_status = 'WAIT'
GO

Regards
Post #1508458
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse