replication_较少延迟时间

https://www.mssqltips.com/sqlservertip/3598/troubleshooting-transactional-replication-latency-issues-in-sql-server/

http://www.informit.com/articles/article.aspx?p=344817&seqNum=4

https://msdn.microsoft.com/en-us/library/ms151223.aspx

The second way to override the default values is to specify the new values within the job that runs the agent. For example, you could run the distribution agent with the following values:




多个事务叫一个批


--复制分发器
-Publication [PkgRealSource] 本地发布名1
-PublisherDB [PkgRealSourceDB] 发布名1对应的数据库
-Subscriber [PKGREPL]
-SubscriberDB [PkgRealDB]


-Publisher [CLSJQPKGORDERPKGORDER] 发布服务器
-Distributor [CLSJQPKGORDERPKGORDER] 分发服务器
-DistributorSecurityMode 1 认证模式,默认为1 windows认证

-subscriptionstreams 4 订阅到分发的最大连接数(性能调优参数)
-PollingInterval 1 分发数据库对被复制的事务的查询频率
-CommitBatchSize 300 每批提交数
-Continuous 按照PollingInterval,持续性的拉取被复制的事务



--MaxBcpThreads 5 用于快速初始化过程 snapshot between publisher and subscribers


--subscriptionstreams 4 用于加速事务复制 减少复制延迟 
当使用单线程时,保持许多事务性的特征
每个分发代理允许连接到订阅服务器的批处理更改的连接数

--Enhance Transactional Replication Performance
https://msdn.microsoft.com/en-us/library/ms151762.aspx


--Replication Distribution Agent
https://msdn.microsoft.com/en-us/library/ms147328.aspx

--Transactional Replication Performance Tuning and Optimization
https://technet.microsoft.com/en-us/library/cc966539.aspx


--百度翻译
http://fanyi.baidu.com/



原文地址:https://www.cnblogs.com/justdba/p/6308611.html