SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


max_concurrent_merge queue view


max_concurrent_merge queue view

Author
Message
Snakeyes
Snakeyes
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 311
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
Snakeyes
Snakeyes
Valued Member
Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)Valued Member (64 reputation)

Group: General Forum Members
Points: 64 Visits: 311
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search