Skip to content

Instantly share code, notes, and snippets.

@henryoswald
Created July 19, 2015 15:57
Show Gist options
  • Save henryoswald/8ff9cf917e63c2e983dd to your computer and use it in GitHub Desktop.
Save henryoswald/8ff9cf917e63c2e983dd to your computer and use it in GitHub Desktop.
db.serverStatus() on primary server
{
"host" : "primary-mongodb",
"version" : "3.0.3",
"process" : "mongod",
"pid" : NumberLong(24890),
"uptime" : 1671011,
"uptimeMillis" : NumberLong(1671011524),
"uptimeEstimate" : 1655592,
"localTime" : ISODate("2015-07-19T15:55:42.960Z"),
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 262,
"rollovers" : 0
},
"connections" : {
"current" : 864,
"available" : 50336,
"totalCreated" : NumberLong(9915149)
},
"cursors" : {
"note" : "deprecated, use server status metrics",
"clientCursors_size" : 35,
"totalOpen" : 35,
"pinned" : 0,
"totalNoTimeout" : 0,
"timedOut" : 201146
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : 2020272696,
"page_faults" : 12434
},
"globalLock" : {
"totalTime" : NumberLong("1671011523000"),
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
},
"activeClients" : {
"total" : 889,
"readers" : 0,
"writers" : 0
}
},
"locks" : {
"Global" : {
"acquireCount" : {
"r" : NumberLong(327997571),
"w" : NumberLong(232084309),
"R" : NumberLong(1),
"W" : NumberLong(382021)
},
"acquireWaitCount" : {
"r" : NumberLong(42050),
"w" : NumberLong(2651),
"W" : NumberLong(35237)
},
"timeAcquiringMicros" : {
"r" : NumberLong(483965960),
"w" : NumberLong(61714489),
"W" : NumberLong(6628022)
}
},
"Database" : {
"acquireCount" : {
"r" : NumberLong(327990902),
"w" : NumberLong(223031667),
"R" : NumberLong(6669),
"W" : NumberLong(9052642)
},
"acquireWaitCount" : {
"r" : NumberLong(389),
"w" : NumberLong(937),
"R" : NumberLong(39),
"W" : NumberLong(340)
},
"timeAcquiringMicros" : {
"r" : NumberLong("5146413264258"),
"w" : NumberLong(858802),
"R" : NumberLong("616478988279"),
"W" : NumberLong(68192)
}
},
"Collection" : {
"acquireCount" : {
"r" : NumberLong(231103968),
"w" : NumberLong(183168771)
}
},
"Metadata" : {
"acquireCount" : {
"W" : NumberLong(3)
}
},
"oplog" : {
"acquireCount" : {
"r" : NumberLong(97926612),
"w" : NumberLong(39862896)
}
}
},
"network" : {
"bytesIn" : 148963315914,
"bytesOut" : NumberLong("1408078512950"),
"numRequests" : 496898723
},
"opcounters" : {
"insert" : 12966176,
"query" : 211268602,
"update" : 17895664,
"delete" : 2552078,
"getmore" : 51352724,
"command" : 201798574
},
"opcountersRepl" : {
"insert" : 3208566,
"query" : 0,
"update" : 2764426,
"delete" : 3246319,
"getmore" : 0,
"command" : 0
},
"repl" : {
"setName" : "my-replicaset-rs",
"setVersion" : 23,
"ismaster" : true,
"secondary" : false,
"hosts" : [
"sl-lin-prod-mongo-0.priv:27017",
"sl-lin-prod-mongo-2.priv:27017",
"sl-lin-prod-mongo-1.priv:27017"
],
"primary" : "sl-lin-prod-mongo-2.priv:27017",
"me" : "sl-lin-prod-mongo-2.priv:27017",
"electionId" : ObjectId("55963b80312d7d9302db2b74"),
"rbid" : 1248903155
},
"storageEngine" : {
"name" : "wiredTiger"
},
"wiredTiger" : {
"uri" : "statistics:",
"LSM" : {
"sleep for LSM checkpoint throttle" : 0,
"sleep for LSM merge throttle" : 0,
"rows merged in an LSM tree" : 0,
"application work units currently queued" : 0,
"merge work units currently queued" : 0,
"tree queue hit maximum" : 0,
"switch work units currently queued" : 0,
"tree maintenance operations scheduled" : 0,
"tree maintenance operations discarded" : 0,
"tree maintenance operations executed" : 0
},
"async" : {
"number of allocation state races" : 0,
"number of operation slots viewed for allocation" : 0,
"current work queue length" : 0,
"number of flush calls" : 0,
"number of times operation allocation failed" : 0,
"maximum work queue length" : 0,
"number of times worker found no work" : 0,
"total allocations" : 0,
"total compact calls" : 0,
"total insert calls" : 0,
"total remove calls" : 0,
"total search calls" : 0,
"total update calls" : 0
},
"block-manager" : {
"mapped bytes read" : 0,
"bytes read" : NumberLong("2886393802752"),
"bytes written" : 700846243840,
"mapped blocks read" : 0,
"blocks pre-loaded" : 7717,
"blocks read" : 211012234,
"blocks written" : 55378890
},
"cache" : {
"tracked dirty bytes in the cache" : 31632837,
"tracked bytes belonging to internal pages in the cache" : 209018856214,
"bytes currently in the cache" : 6011595756,
"tracked bytes belonging to leaf pages in the cache" : NumberLong("9223372036854775807"),
"maximum bytes configured" : 7516192768,
"tracked bytes belonging to overflow pages in the cache" : 0,
"bytes read into cache" : NumberLong("4790450638938"),
"bytes written from cache" : 1011814072518,
"pages evicted by application threads" : 22,
"checkpoint blocked page eviction" : 43464,
"unmodified pages evicted" : 175432957,
"page split during eviction deepened the tree" : 32,
"modified pages evicted" : 34564660,
"pages selected for eviction unable to be evicted" : 9418234,
"pages evicted because they exceeded the in-memory maximum" : 14226,
"pages evicted because they had chains of deleted items" : 317352,
"failed eviction of pages that exceeded the in-memory maximum" : 194563,
"hazard pointer blocked page eviction" : 6902992,
"internal pages evicted" : 7411446,
"maximum page size at eviction" : 36519669,
"eviction server candidate queue empty when topping up" : 1742923,
"eviction server candidate queue not empty when topping up" : 1087599,
"eviction server evicting pages" : 36149059,
"eviction server populating queue, but not evicting pages" : 1197016,
"eviction server unable to reach eviction goal" : 0,
"pages split during eviction" : 969129,
"pages walked for eviction" : 540165116281,
"eviction worker thread evicting pages" : 181187118,
"in-memory page splits" : 1546,
"percentage overhead" : 8,
"tracked dirty pages in the cache" : 212,
"pages currently held in the cache" : 95496,
"pages read into cache" : 210162158,
"pages written from cache" : 53645020
},
"connection" : {
"pthread mutex condition wait calls" : 67299755,
"files currently open" : 132,
"memory allocations" : 5441032080,
"memory frees" : 5353891038,
"memory re-allocations" : 9153785,
"total read I/Os" : 211028765,
"pthread mutex shared lock read-lock calls" : 14283446,
"pthread mutex shared lock write-lock calls" : 3363089,
"total write I/Os" : 154889856
},
"cursor" : {
"cursor create calls" : 6524566,
"cursor insert calls" : 224735339,
"cursor next calls" : 18698193035,
"cursor prev calls" : 10815534,
"cursor remove calls" : 108134791,
"cursor reset calls" : 1241208710,
"cursor search calls" : 474559790,
"cursor search near calls" : 480885820,
"cursor update calls" : 0
},
"data-handle" : {
"connection dhandles swept" : 0,
"connection candidate referenced" : 839052,
"connection sweeps" : 334192,
"connection time-of-death sets" : 839225,
"session dhandles swept" : 1208772,
"session sweep attempts" : 59264
},
"log" : {
"log buffer size increases" : 4,
"total log buffer size" : 540029952,
"log bytes of payload data" : 184835731002,
"log bytes written" : 190369293696,
"yields waiting for previous log file close" : 0,
"total size of compressed records" : 170272143127,
"total in-memory size of compressed records" : 387162498329,
"log records too small to compress" : 10536128,
"log records not compressed" : 50810623,
"log records compressed" : 39698868,
"maximum log file size" : 104857600,
"pre-allocated log files prepared" : 1817,
"number of pre-allocated log files to create" : 1,
"pre-allocated log files used" : 1816,
"log read operations" : 0,
"log release advances write LSN" : 20028629,
"records processed by log scan" : 0,
"log scan records requiring two reads" : 0,
"log scan operations" : 0,
"consolidated slot closures" : 79535427,
"logging bytes consolidated" : 183162090624,
"consolidated slot joins" : 81197710,
"consolidated slot join races" : 151374,
"slots selected for switching that were unavailable" : 32968581,
"record size exceeded maximum" : 0,
"failed to find a slot large enough for record" : 3,
"consolidated slot join transitions" : 11460,
"log sync operations" : 81650,
"log sync_dir operations" : 1211,
"log server thread advances write LSN" : 79453794,
"log write operations" : 101025070
},
"reconciliation" : {
"page reconciliation calls" : 41436789,
"page reconciliation calls for eviction" : 29232182,
"split bytes currently awaiting free" : 2117139,
"split objects currently awaiting free" : 9
},
"session" : {
"open cursor count" : 128759,
"open session count" : 1290
},
"thread-yield" : {
"page acquire busy blocked" : 1113,
"page acquire eviction blocked" : 423,
"page acquire locked blocked" : 237933583,
"page acquire read blocked" : 66639062,
"page acquire time sleeping (usecs)" : 880431019
},
"transaction" : {
"transaction begins" : 562070882,
"transaction checkpoints" : 27061,
"transaction checkpoint generation" : 27061,
"transaction checkpoint currently running" : 0,
"transaction checkpoint max time (msecs)" : 2852,
"transaction checkpoint min time (msecs)" : 3,
"transaction checkpoint most recent time (msecs)" : 1524,
"transaction checkpoint total time (msecs)" : 42969518,
"transactions committed" : 100995743,
"transaction failures due to cache overflow" : 0,
"transaction range of IDs currently pinned by a checkpoint" : 0,
"transaction range of IDs currently pinned" : 2,
"transactions rolled back" : 460651448
},
"concurrentTransactions" : {
"write" : {
"out" : 0,
"available" : 128,
"totalTickets" : 128
},
"read" : {
"out" : 1,
"available" : 127,
"totalTickets" : 128
}
}
},
"writeBacksQueued" : false,
"mem" : {
"bits" : 64,
"resident" : 14314,
"virtual" : 16489,
"supported" : true,
"mapped" : 0,
"mappedWithJournal" : 0
},
"metrics" : {
"commands" : {
"_isSelf" : {
"failed" : NumberLong(0),
"total" : NumberLong(30391)
},
"appendOplogNote" : {
"failed" : NumberLong(0),
"total" : NumberLong(271)
},
"authenticate" : {
"failed" : NumberLong(90),
"total" : NumberLong(1006325)
},
"availableQueryOptions" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"buildInfo" : {
"failed" : NumberLong(0),
"total" : NumberLong(30674)
},
"collStats" : {
"failed" : NumberLong(0),
"total" : NumberLong(44660)
},
"connPoolStats" : {
"failed" : NumberLong(0),
"total" : NumberLong(30380)
},
"count" : {
"failed" : NumberLong(0),
"total" : NumberLong(130707)
},
"dbStats" : {
"failed" : NumberLong(0),
"total" : NumberLong(6196)
},
"delete" : {
"failed" : NumberLong(0),
"total" : NumberLong(1532612)
},
"getCmdLineOpts" : {
"failed" : NumberLong(0),
"total" : NumberLong(30380)
},
"getLastError" : {
"failed" : NumberLong(0),
"total" : NumberLong(8341738)
},
"getLog" : {
"failed" : NumberLong(0),
"total" : NumberLong(30392)
},
"getParameter" : {
"failed" : NumberLong(0),
"total" : NumberLong(30380)
},
"getShardVersion" : {
"failed" : NumberLong(0),
"total" : NumberLong(25679)
},
"getnonce" : {
"failed" : NumberLong(0),
"total" : NumberLong(1006344)
},
"hostInfo" : {
"failed" : NumberLong(0),
"total" : NumberLong(30380)
},
"insert" : {
"failed" : NumberLong(0),
"total" : NumberLong(12908459)
},
"isMaster" : {
"failed" : NumberLong(0),
"total" : NumberLong(85034477)
},
"listCollections" : {
"failed" : NumberLong(0),
"total" : NumberLong(472)
},
"listCommands" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"listDatabases" : {
"failed" : NumberLong(0),
"total" : NumberLong(3432)
},
"listIndexes" : {
"failed" : NumberLong(0),
"total" : NumberLong(79)
},
"logout" : {
"failed" : NumberLong(0),
"total" : NumberLong(45258)
},
"ping" : {
"failed" : NumberLong(0),
"total" : NumberLong(40945296)
},
"replSetFresh" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"replSetGetConfig" : {
"failed" : NumberLong(0),
"total" : NumberLong(2)
},
"replSetGetStatus" : {
"failed" : NumberLong(0),
"total" : NumberLong(60777)
},
"replSetHeartbeat" : {
"failed" : NumberLong(0),
"total" : NumberLong(1669048)
},
"replSetReconfig" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"replSetSyncFrom" : {
"failed" : NumberLong(0),
"total" : NumberLong(3)
},
"replSetUpdatePosition" : {
"failed" : NumberLong(2),
"total" : NumberLong(36366073)
},
"saslContinue" : {
"failed" : NumberLong(0),
"total" : NumberLong(17890977)
},
"saslStart" : {
"failed" : NumberLong(1020),
"total" : NumberLong(8946536)
},
"serverStatus" : {
"failed" : NumberLong(76),
"total" : NumberLong(60767)
},
"update" : {
"failed" : NumberLong(0),
"total" : NumberLong(9611643)
},
"whatsmyuri" : {
"failed" : NumberLong(0),
"total" : NumberLong(476)
}
},
"cursor" : {
"timedOut" : NumberLong(201146),
"open" : {
"noTimeout" : NumberLong(0),
"pinned" : NumberLong(0),
"total" : NumberLong(35)
}
},
"document" : {
"deleted" : NumberLong(2552100),
"inserted" : NumberLong(12966174),
"returned" : NumberLong(410979591),
"updated" : NumberLong(16247035)
},
"getLastError" : {
"wtime" : {
"num" : 0,
"totalMillis" : 0
},
"wtimeouts" : NumberLong(0)
},
"operation" : {
"fastmod" : NumberLong(0),
"idhack" : NumberLong(188524839),
"scanAndOrder" : NumberLong(203010),
"writeConflicts" : NumberLong(2863)
},
"queryExecutor" : {
"scanned" : NumberLong(281996435),
"scannedObjects" : NumberLong("18339661293")
},
"record" : {
"moves" : NumberLong(0)
},
"repl" : {
"apply" : {
"batches" : {
"num" : 4526296,
"totalMillis" : 343867
},
"ops" : NumberLong(9219311)
},
"buffer" : {
"count" : NumberLong(0),
"maxSizeBytes" : 268435456,
"sizeBytes" : NumberLong(0)
},
"network" : {
"bytes" : NumberLong("19094595148"),
"getmores" : {
"num" : 4571643,
"totalMillis" : 242622089
},
"ops" : NumberLong(9219310),
"readersCreated" : NumberLong(3)
},
"preload" : {
"docs" : {
"num" : 0,
"totalMillis" : 0
},
"indexes" : {
"num" : 0,
"totalMillis" : 0
}
}
},
"storage" : {
"freelist" : {
"search" : {
"bucketExhausted" : NumberLong(0),
"requests" : NumberLong(0),
"scanned" : NumberLong(0)
}
}
},
"ttl" : {
"deletedDocuments" : NumberLong(9623423),
"passes" : NumberLong(27721)
}
},
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment