Hello,
Our cluster is running on our premises (our datacenter). I have reached to Atlas but they redirected me here as it was on premises deployment.
We have 3 servers with a PSS deployment. The servers have 125GB RAM .
The line in the log for the slow query:
"c":"COMMAND", "id":51803, "ctx":"conn16","msg":"Slow query","attr":{"type":"command","ns":"MtxEventDatabase.$cmd","command":{"update":"EventCo
llection20220401","ordered":false,"$db":"MtxEventDatabase","lsid":{"id":{"$uuid":"63ae02fc-c755-4dd0-8bfe-12c3559b602c"}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1649934625,"i":6}},"signature":{
"hash":{"$binary":{"base64":"mj2uqCmNycKfMhwdvAtPgYeX+mA=","subType":"0"}},"keyId":7023367372685705220}},"writeConcern":{"wtimeout":1}},"numYields":0,"reslen":508997,"locks":{"ParallelBatchWriterMode":{"
acquireCount":{"r":9997}},"ReplicationStateTransition":{"acquireCount":{"w":9997}},"Global":{"acquireCount":{"w":9997}},"Database":{"acquireCount":{"w":9997}},"Collection":{"acquireCount":{"w":9997}},"Mu
tex":{"acquireCount":{"r":9997}}},"flowControl":{"acquireCount":9997,"timeAcquiringMicros":3120},"writeConcern":{"w":1,"wtimeout":1},"storage":{"data":{"bytesRead":6409105,"timeReadingMicros":7106}},"pro
tocol":"op_msg","durationMillis":1036}}
I have attached the metrics file for the primary member of the cluster.
Below you can find one document from the collection:
prod-cluster:PRIMARY> db.EventCollection20220401.findOne()
{
"_id" : "H560:1:52:183071606",
"WalletOwnerId" : NumberLong("73183493945073446"),
"CMdc" : "<1,3,1,-24,5213,3>[]<1,1,0,1167,5213,3>[{<1,4,1,1296,5213,3>[500,(12:String),(0:)],<1,4,1,1296,5213,3>[520,(6:String),(6:String)]}]<1,11,0,626,5213,3>[{28,1}]<1,28,0,208,5213,3>[0:2:5:302886,(13:NumberLong),0:2:5:303239,(19:NumberLong),0,0:2:5:302887,0:2:5:302886,(13:NumberLong),,,,,,2022-04-01T03:00:01.041472+03:00,,(19:H560:1:52:183071606),,,,,4,,,0:2:5:302885,(36:String),1,1]",
"DeleteCode" : 4,
"EventTime" : ISODate("2022-04-01T00:00:01.041Z"),
"EventType" : 28,
"UserId" : NumberLong("73183493945073445")
}
Indexes for the collection:
prod-cluster:PRIMARY> db.EventCollection20220401.getIndexes()
[
{
"v" : 2,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "MtxEventDatabase.EventCollection20220401"
},
{
"v" : 2,
"key" : {
"WalletOwnerId" : 1,
"EventTime" : 1
},
"name" : "MtxWalletOwnerId_1_EventTime_1",
"ns" : "MtxEventDatabase.EventCollection20220401"
},
{
"v" : 2,
"key" : {
"EventTime" : 1
},
"name" : "MtxEventTime_1",
"ns" : "MtxEventDatabase.EventCollection20220401"
},
{
"v" : 2,
"key" : {
"DeleteCode" : 1,
"EventTime" : 1
},
"name" : "DeleteCode_1_EventTime_1",
"ns" : "MtxEventDatabase.EventCollection20220401"
},
{
"v" : 2,
"key" : {
"UserId" : 1
},
"name" : "UserId_1",
"ns" : "MtxEventDatabase.EventCollection20220401"
}
]
Please let me know if you need anything else.
Thank you in advance!
Best regards,
Bogdan Pelin