mongod.log不清楚(毫秒)

0

我无法从文件名中理解行的 mongod.log 中的ms 是什么意思,我有一个包含3个mongo实例的副本集。>

这是我的日志中的一行:

2019-10-30T21:09:41.647Z I COMMAND [co48] command Db.noa command: insert 
{ 
    insert: "noa",ordered: true,$db: "hDb",$clusterTime: {
          clusterTime: Timestamp(1572469780,646),signature: { 
               hash: BinData(0,0000000000000000000000000000000000000000),keyId: 0 
          } 
     },lsid: { 
            id: UUID("91b42ec1-fd1b-4b03-b3d5-fd66e14cc774") 
           } 
     } 
     ninserted:1 
     keysInserted:3 
     numYields:0 
     reslen:214 
     locks:{ 
          Global: { 
               acquireCount: { r: 2,w: 2 } 
          },Database: { 
               acquireCount: { w: 2 } 
          },Collection: { 
               acquireCount: { w: 1 } 
          },oplog: { 
               acquireCount: { w: 1 } 
          } 
     } 
     protocol:op_msg **1056ms**

我的写关注点是w:1 wtimeout:0

这意味着在将数据写入内存之后进行确认,而ms则意味着还要写入磁盘的总时间?

请您能帮助我理解日志

lorndrifter 回答:mongod.log不清楚(毫秒)

这是完整的客户端操作时间。 如果该时间超过慢速操作阈值(默认设置为100ms),则会打印该消息。

https://docs.mongodb.com/manual/reference/log-messages/#log-message-slow-ops

本文链接:https://www.f2er.com/3153002.html

大家都在问