簡體   English   中英

mongod.log 不清楚(毫秒)

[英]mongod.log not clear (ms)

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

這意味着什么是數據寫入 memory 后的確認,毫秒也意味着寫入磁盤的總時間?

請你幫我理解日志

這是一個完整的客戶端操作時間。 如果該時間高於默認設置為 100 毫秒的慢速操作閾值,則會打印它。

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