max_concurrent_merge queue view

  • 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

  • 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

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply