0

I got a MongoDB slow log, seem like it's not the biz logic problem, it's got a name space called 'somedatabase.$cmd', and 's' = 'I', seems like MongoDB was inserting some record to it's internal database, I was wondering what would cause this slow log, can anyone help me out?

{
    "t":
    {
        "$date": "2023-03-21T02:15:06.811+00:00"
    },
    "s": "I",
    "c": "COMMAND",
    "id": 51803,
    "ctx": "conn2005",
    "msg": "Slow query",
    "attr":
    {
        "type": "command",
        "ns": "somedatabase.$cmd",
        "command":
        {
            "update": "some.collection.name",
            "ordered": true,
            "lsid":
            {
                "id":
                {
                    "$uuid": "11002661-9ad8-4441-abb1-aaf73b7bf396"
                }
            },
            "$clusterTime":
            {
                "clusterTime":
                {
                    "$timestamp":
                    {
                        "t": 1679364906,
                        "i": 126
                    }
                },
                "signature":
                {
                    "hash":
                    {
                        "$binary":
                        {
                            "base64": "7BBzZ7SDfb7b8+1xucF0acz//3M=",
                            "subType": "0"
                        }
                    },
                    "keyId": 7204049126340689925
                }
            },
            "$db": "walmartsprite"
        },
        "numYields": 51,
        "reslen": 245,
        "locks":
        {
            "ParallelBatchWriterMode":
            {
                "acquireCount":
                {
                    "r": 52
                }
            },
            "FeatureCompatibilityVersion":
            {
                "acquireCount":
                {
                    "r": 2,
                    "w": 52
                }
            },
            "ReplicationStateTransition":
            {
                "acquireCount":
                {
                    "w": 54
                }
            },
            "Global":
            {
                "acquireCount":
                {
                    "r": 2,
                    "w": 52
                }
            },
            "Database":
            {
                "acquireCount":
                {
                    "w": 52
                }
            },
            "Collection":
            {
                "acquireCount":
                {
                    "w": 52
                }
            },
            "Mutex":
            {
                "acquireCount":
                {
                    "r": 1
                }
            }
        },
        "flowControl":
        {
            "acquireCount": 52,
            "timeAcquiringMicros": 34
        },
        "storage":
        {},
        "protocol": "op_msg",
        "durationMillis": 123
    }
}

Googled this problem, and didn't find the answer.

0 Answers0