Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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.

share|improve this answer
    
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 1: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 2: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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.