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

Monitoring transac replication

$
0
0

Hi,

I have 2 servers setup in a bi-directional transactional replication. At the moment I monitor these in an external tools by using:

* sp_replmonitorsubscriptionpendingcmds => gives me an aggregate of all the pending commands

* And the following that gives me the detail

 select article, UndelivCmdsInDistDB
from distribution.dbo.MSdistribution_status  X (nolock)
 join distribution.dbo.MSdistribution_agents Y (nolock) on   Y.id=X.Agent_id
 join distribution.dbo.MSarticles Z (nolock) on Z.article_id=X.article_id
 where UndelivCmdsInDistDB>0 and z.publisher_db = DB_NAME()
 order by 2 desc, 1

For one of the server the value pretty much matches. However for the other servers, the 'detailed' view has an order of magnitude higher of a 100 compared to the aggregate. The aggregate is also extremely flat compared to the details view.

What could explain the delta between the detailed view and the aggregate ?

Thanks


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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