A quick one if you are wondering about MongoDB and Journalling (especially on Debian/Ubuntu from the MongoDB repo) .
By default mongodb will generate 3gig of journal files in /var/lib/mongodb/journal this is far from ideal if you are running on a Rackspace CloudServer or smaller VPS.
There are two easy solutions:
nojournal=trueoption in mongodb.conf.
smallfiles=trueoption in mongodb.conf.
To also reduce some usage in your datafiles there is the also the
noprealloc = true
option, however I don’t see this as particularly useful considering the preallocation starts pretty small and only grows as your data does.tags: