MongoDB:3.2缓慢写入大量的Metadata.acquireCount.W和timeAcquiringMicros

时间:2019-07-11 11:53:11

标签: mongodb performance slowdown

我正在使用mongodb 3.2版。在大型馆藏中,简单的插入查询需要1秒钟到5秒钟的时间。

大型馆藏-有4个大型馆藏,其中3个大型馆藏有20万个条目,一个大型馆藏有1000万个记录。在3个大型馆藏中,经常进行作业。在检查事件探查器时,我发现查询中包含许多元互斥锁和

参考:

"Database" : {
            "acquireCount" : {
                "w" : NumberLong(2)
            },
            "acquireWaitCount" : {   // It slows down write performance// no of times waited for locks
                "w" : NumberLong(1)
            },
            "timeAcquiringMicros" : {  // due to acquire wait, this is the time taken in wait queue
                "w" : NumberLong(8339)
            }
        },
        "Collection" : {
            "acquireCount" : {
                "w" : NumberLong(1)
            }
        },
        "Metadata" : {
            "acquireCount" : {
                "w" : NumberLong(2),  // why two
                "W" : NumberLong(1) /// why it has two entires
            },
            "acquireWaitCount" : {  
                "W" : NumberLong(1)
            },
            "timeAcquiringMicros" : {
                "W" : NumberLong(738)
            }
        },
        "oplog" : {
            "acquireCount" : {
                "w" : NumberLong(1)
            }
        }

此Metadata.acquireCount和Metadata.timeAcquiringMicros是什么?另外,删除/减少此元数据锁定的解决方案是什么。

0 个答案:

没有答案