求教大神们,mongodb版本v3.6.13,分片集群,每7分钟或者7分钟倍数的时候出现写入超时,时间长的高达10s多,观察日志发现伴随的有system.sessions更新和块分裂,看了system.sessions是3.6新增功能,文档上说会定期将内存中的会话同步到system.sessions集合,有谁知道这个定期是多久一次,日志如下:
command config.$cmd command: update { update: “system.sessions”, bypassDocumentValidation: false, ordered: false, updates: 1000, shardVersion: [ Timestamp(1, 0), ObjectId(‘5d36d97e10d0695f3458d1f8’) ], writeConcern: { w: “majority”, wtimeout: 15000 }, $clusterTime: { clusterTime: Timestamp(1566958325, 16), signature: { hash: BinData(0, 0CD0CBC199B5CF52F0C66527EE6DE2165A4B5C2F), keyId: 6716762379117395992 } }, $configServerState: { opTime: { ts: Timestamp(1566958303, 4), t: 2 } }, $db: “config” } numYields:0 reslen:7650 locks:{ Global: { acquireCount: { r: 2000, w: 2000 } }, Database: { acquireCount: { w: 2000 } }, Collection: { acquireCount: { w: 1000 } }, oplog: { acquireCount: { w: 1000 } } } protocol:op_msg 5106ms
mongodb写入超时