Permalink
Browse files

Use smaller mongodb files by default

  • Loading branch information...
1 parent 739e4fd commit f3c5f6a911cf4f3762c5c30407238f3696283954 @boutell boutell committed May 14, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 sc-proxy/install-node-and-mongo-on-ubuntu.bash
@@ -33,6 +33,10 @@ apt-get -y install mongodb-10gen &&
echo "Installed MongoDB" &&
echo "Configuring MongoDB to listen only on localhost" &&
echo "bind_ip = 127.0.0.1" >> /etc/mongodb.conf &&
+# The default configuration for MongoDB assumes taking up 6GB off the bat for every single
+# database is cool and also inhales tons of space for journal files. This is overkill for
+# most deployments, so we instruct MongoDB to use smaller files
+echo "smallfiles = true" >> /etc/mongodb.conf &&
/usr/sbin/service mongodb restart &&
npm install -g forever &&
echo "Success!"

0 comments on commit f3c5f6a

Please sign in to comment.