I am trying to explore if I can have journal files on separate disk than the data files and how it will affect my MongoDB setup?Can someone please highlight the benefits of doing this? Is there any reason why I wouldn't want to separate my journal and data files?
Thanks for the reply Stephen.What would be the recommendation in case of using MongoDB with NFS? Should I keep data file and journal files separate? Will it have any impact on performance?In this post William points out that NFS should not be used with MongoDB owing to performance issues due to remapping of all data files 10 times per sec. Will the performance benefit (if any) gained by separating out journal files balance out the penalty due to remapping of data files.(IIUC remapping is triggered due to journal flush)?
Just to emphasize what's already been said about NFS:
Don't use NFS for data files, and REALLY *never* put the journal on NFS.
Asya
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2fd06d6a-b4d1-4d01-88dd-19b23d47d06e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4adb19e4-863e-4f90-98c0-e14a2ba9b2b5%40googlegroups.com.
Thanks for the reply William and Asya, really appreciate it.
William,
I want to clear some understanding, In this post here and here, you said that MongoDB does remapping of data files using mremap() 10 times per sec which causes lot of data transfer over network hurting performance if using NFS. As I understand by reading this http://www.kchodorow.com/blog/2012/10/04/how-mongodbs-journaling-works/, the journal flush causes the remapping operation between shared view data files and private view data files in RAM. IIUC from earlier mention posts, the data files will be transferred again over network for this remapping operation because NFS is stateless. Am I correct? And this will happen no matter where journal is. That is, even if journal is on local disk and data files are on NFS, the same issues with remapping will apply here also.
As I understand, this problem is specific to NFS only and will not be there with iSCI or FCoE. Please comment if there is something incorrect with my understanding above.
I
understand that NFS + MongoDB should be avoided. I am trying to convince my sys-admins
that even by keeping data files on NFS and journal on local disk(SSD) the same
problems exist and there won’t be any significant performance gains unless we
avoid NFS.
The confirmation of above remapping issues will help. Are there any other issues which I can run into if I separate out journal and data files onto separate physical disks? I couldn't find anything with google search and would like to know any caveats before trying this out.
Once again thanks and really appreciate your patience in answering my queries.
Thanks,
Abhi
> The journal flush causes the remapping operation between shared view data files and private view data files in RAM. IIUC from earlier mention posts, the data files will be transferred again over network for this remapping operation because NFS is stateless. Am I correct?
> And this will happen no matter where journal is. That is, even if journal is on local disk and data files are on NFS, the same issues with remapping will apply here also.
> As I understand, this problem is specific to NFS only and will not be there with iSCI or FCoE. Please comment if there is something incorrect with my understanding above.
> that even by keeping data files on NFS and journal on local disk(SSD) the same problems exist and there won’t be any significant performance gains unless we avoid NFS.
> Are there any other issues which I can run into if I separate out journal and data files onto separate physical disks?