I've been using MongoDB on CentOS with ext4 for a few months now with no problems. I'm potentially going to be moving to Joyentcloud, and their SmartOS is based off of OpenSolaris and uses ZFS. I'm wondering if there could be some downsides to switching to this for MongoDB?
2 Answers
10gen strongly recommends XFS if you know how to tune it, or EXT4 otherwise. With that said I would advise realistic (including load, if you can figure out how) testing with non-production data.
With that said, I would consider using the --nojournal
flag when starting MongoDB to avoid excessive disk thrashing that would be caused by ZFS Journaling watching MongoDB's Journaling.

- 11,957
- 8
- 42
- 69
-
So if turning journaling off isn't an option, then it wouldn't be a good idea to go with this setup? – James Simpson Sep 24 '11 at 01:51
-
Are you saying that Mongo Journaling is a requirement? In any case, I say test as rigourously as possible. I just mention that because the two types of Journaling may cause a lot of disk I/O. – gWaldo Sep 24 '11 at 02:21
No, it is a bad idea :
ZFS uses as much free memory as it can for caching
MongoDB too
so, the RAM is not used efficiently.
ZFS uses CPU for each read an write, using an hardware raid with ext4 or xfs will free up some cpu cycles that would be available for MonGoDB (wich is cpu intensiv)
I would never use ZFS for a DB, i would rather use ZFS as a simple database of big files.

- 238
- 2
- 7