Other

【腾讯云 MongoDB】 基于snapshot的从库读优化

腾讯云MongoDB实例在主库写压力比较大的情况下,这时从库上会出现很多慢查询,经调查发现,从库在回放oplog的时候加了全局锁,阻塞了所有的读直到回放结束。经过优化,使得从库的读延时降低几倍到几十倍不等,qps也有一个明显的提升。 [https://cloud.tencent.com/act/cps/redirect?redirect=27&cps_key=8719578ef81517c1928c111fd0ea2780&from=console](https://cloud.tencent.com/act/cps/redirect?redirect=27&cps_key=8719578ef81517c1928c111fd0ea2780&from=console)
avatar

Moonlight

知之AI编辑部
View Articles

Louis Ferguson is a senior editor for the blogzine and also reports on breaking news based in London. He has written about government, criminal justice, and the role of money in politics since 2015.