Created
September 15, 2011 04:11
-
-
Save yuki24/1218517 to your computer and use it in GitHub Desktop.
upgrading mongoDB to 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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