Skip to content

Instantly share code, notes, and snippets.

@timlinquist
Created February 21, 2011 21:56
Show Gist options
  • Save timlinquist/837771 to your computer and use it in GitHub Desktop.
Save timlinquist/837771 to your computer and use it in GitHub Desktop.
Current master:
-> ls -la /db | grep local
drwxr-xr-x 2 root root 6 Feb 16 16:28 local
-rw------- 1 root root 67108864 Feb 16 16:26 local.0
-rw------- 1 root root 134217728 Feb 16 16:26 local.1
-rw------- 1 root root 2146435072 Feb 16 16:26 local.2
-rw------- 1 root root 16777216 Feb 16 16:26 local.ns
-> mongo
MongoDB shell version: 1.6.5
connecting to: test
> use local;
switched to db local
> db.oplog.rs.stats();
{
"ns" : "local.oplog.rs",
"count" : 7030264,
"size" : -745887136,
"avgObjSize" : -106.09660405356044,
"storageSize" : 2031299072,
"numExtents" : 1,
"nindexes" : 0,
"lastExtentSize" : 2031299072,
"paddingFactor" : 1,
"flags" : 0,
"totalIndexSize" : 0,
"indexSizes" : {
},
"capped" : 1,
"max" : 2147483647,
"ok" : 1
}
Current secondary:
-> ls -la /db/ | grep local
drwxr-xr-x 2 root root 6 Feb 16 14:40 local
-rw------- 1 root root 67108864 Feb 16 14:35 local.0
-rw------- 1 root root 134217728 Feb 16 14:35 local.1
-rw------- 1 root root 2146435072 Feb 16 14:35 local.2
-rw------- 1 root root 2146435072 Feb 16 14:35 local.3
-rw------- 1 root root 2146435072 Feb 16 14:40 local.4
-rw------- 1 root root 2146435072 Feb 16 14:40 local.5
-rw------- 1 root root 16777216 Feb 16 14:35 local.ns
-> mongo
MongoDB shell version: 1.6.5
connecting to: test
> use local;
switched to db local
> db.oplog.rs.stats();
{
"ns" : "local.oplog.rs",
"count" : 14384329,
"size" : 1397590340,
"avgObjSize" : 97.16062111760652,
"storageSize" : 4292442624,
"numExtents" : 2,
"nindexes" : 0,
"lastExtentSize" : 2146015760,
"paddingFactor" : 1,
"flags" : 0,
"totalIndexSize" : 0,
"indexSizes" : {
},
"capped" : 1,
"max" : 2147483647,
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment