简体   繁体   English

mongod.log 不清楚(毫秒)

[英]mongod.log not clear (ms)

0 0

I cannot understand from documation what is the meaning of the ms in the mongod.log end of the line I have a replica set with 3 mongo instances.我无法从文档中理解mongod.log行末尾的 ms 的含义我有一个包含 3 个 mongo 实例的副本集。

this is a line from my log:这是我日志中的一行:

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**

my write concern is w:1 wtimeout:0我的写作问题是 w:1 wtimeout:0

what it means the acknowledge come after the data is written the memory the ms means the total time to write to disk as well?这意味着什么是数据写入 memory 后的确认,毫秒也意味着写入磁盘的总时间?

please can you help me understand the log请你帮我理解日志

It is a complete client operation time.这是一个完整的客户端操作时间。 It is printed if that time is above the slow operation threshold which is set to 100ms by default.如果该时间高于默认设置为 100 毫秒的慢速操作阈值,则会打印它。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM