Skip to content

Instantly share code, notes, and snippets.

@yuki24
Created September 15, 2011 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuki24/1218517 to your computer and use it in GitHub Desktop.
Save yuki24/1218517 to your computer and use it in GitHub Desktop.
upgrading mongoDB to 2.0
Configuration file `/etc/mongodb.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** mongodb.conf (Y/I/N/O/D/Z) [default=N] ? D
--- /etc/mongodb.conf 2011-09-14 17:27:16.895781959 +0900
+++ /etc/mongodb.conf.dpkg-new 2011-09-13 00:17:42.000000000 +0900
@@ -14,7 +14,8 @@
#port = 27017
-
+# Disables write-ahead journaling
+# nojournal = true
# Enables periodic logging of CPU utilization and I/O wait
#cpu = true
@@ -41,9 +42,6 @@
# 7=W+some reads
#diaglog = 0
-# Diagnostic/debugging option
-#nocursors = true
-
# Ignore query hints
#nohints = true
@@ -86,9 +84,3 @@
# in replica set configuration, specify the name of the replica set
# replSet = setname
-
-# turn journaling on.
-journal = true
-
-# enable rest access for mongo web interface
-rest =true
> db.stats()
{
"db" : "hogehoge_development",
"collections" : 18,
"objects" : 16907,
"avgObjSize" : 162.2712485952564,
"dataSize" : 2743520,
"storageSize" : 129996800,
"numExtents" : 36,
"indexes" : 31,
"indexSize" : 1204224,
"fileSize" : 251658240,
"ok" : 1
}
> db.stats()
{
"db" : "hogehoge_development",
"collections" : 18,
"objects" : 16895,
"avgObjSize" : 162.31618822136727,
"dataSize" : 2742332,
"storageSize" : 130017280,
"numExtents" : 37,
"indexes" : 25,
"indexSize" : 752224,
"fileSize" : 251658240,
"nsSizeMB" : 16,
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment