Transactional Replication - Log reader & distribution agent job failing with Query timeout expired (error code - HYT00)


i have setup replication in azure iaas environment using sql 2012. have large database of size 1 tb and replications setup  with 5 publications(around 200 tables) have filters few tables well.

i see log reader agent , distribution agent jobs failing 'query timeout expired' , high sysyem usage. have changed agent profile setting -querytimeout 50000 , -readbatchsize 1, seeing issue, when ever there huge data update\loads on publisher database.

let me know how identify problem , reason job failures.

please suggest steps , necessary setting ensure replication agent jobs work inspite of heavy load. 

hi divya,

as per description, still face timeout issue though change agent profile setting. based on research, blocking result in timeout issue. recommend check if there blocking going on in publication , distribution servers. use sp_who or sp_who2 identify blocking process. blk column of sp_who , blkby column of sp_who2 contains spid blocking process, , use kill statement terminate blocked process. more information process, please refer article: http://www.mssqltips.com/sqlservertip/2732/different-techniques-to-identify-blocking-in-sql-server/

in addition, distribution clean job block log reader agent job , distribution agent job. if distribution clean job blocking of them, stop distribution clean job.

regards,
michelle li



SQL Server  >  SQL Server Replication



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........