I have a database with 11 collections. Some cron scripts update the
database 24/7. CPU load is ~250% (quad-core), RAM is almost full
(12Gb). Here is a database status:
db.serverStatus()
{"host" : ***",
"version" : "2.0.1",
"process" : "mongod",
"uptime" : 1521308,
"uptimeEstimate" : 1502924,
"localTime" : ISODate("2011-11-15T10:15:52.656Z"),
"globalLock" : {
"totalTime" : 1521307796713,
"lockTime" : 372583408477,
"ratio" : 0.24490994477384456,
"currentQueue" : {
"total" : 5,
"readers" : 4,
"writers" : 1
},
"activeClients" : {
"total" : 5,
"readers" : 5,
"writers" : 0
}
},
"mem" : {
"bits" : 64,
"resident" : 6999,
"virtual" : 37510,
"supported" : true,
"mapped" : 18456,
"mappedWithJournal" : 36912
},
"connections" : {
"current" : 13,
"available" : 806
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : 6012848,
"page_faults" : 15887107
},
"indexCounters" : {
"btree" : {
"accesses" : 3081628,
"hits" : 3062232,
"misses" : 19391,
"resets" : 0,
"missRatio" : 0.006292453209796899
}
},
"backgroundFlushing" : {
"flushes" : 25324,
"total_ms" : 266242445,
"average_ms" : 10513.443571315747,
"last_ms" : 7644,
"last_finished" : ISODate("2011-11-15T10:15:32.661Z")
},
"cursors" : {
"totalOpen" : 0,
"clientCursors_size" : 0,
"timedOut" : 319
},
"network" : {
"bytesIn" : 46822763087,
"bytesOut" : NumberLong("5467048505643"),
"numRequests" : 127495426
},
"opcounters" : {
"insert" : 543330,
"query" : 62945009,
"update" : 15179557,
"delete" : 95,
"getmore" : 34769877,
"command" : 14020388
},
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 82,
"rollovers" : 0
},
"writeBacksQueued" : false,
"dur" : {
"commits" : 19,
"journaledMB" : 0.262144,
"writeToDataFilesMB" : 0.76099,
"compression" : 0.9999961853172863,
"commitsInWriteLock" : 0,
"earlyCommits" : 0,
"timeMs" : {
"dt" : 3089,
"prepLogBuffer" : 1,
"writeToJournal" : 924,
"writeToDataFiles" : 11,
"remapPrivateView" : 11
}
},
"ok" : 1
}
I can't decrease write operations, it's necessary for my system. CPU
usage looks normally, the same situation with indexes. Could you
please suggest how to reduce lock ratio? Or using MongoDB for such
class of tasks is not good idea generally?
Thanks.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.