mongodb logs & performances

44 views
Skip to first unread message

Stéphane

unread,
Oct 24, 2012, 10:42:16 AM10/24/12
to mongo...@googlegroups.com
Hello,
I have a question about mongodb logs and performances.
I have a replicaset, each mongod instance runs on a Red Hat linux machine. 
Each machine has a 2 drives : a local hard disk (ext4 format)  and a netwok file system.
The mongo dbpath is located on the local hard disk.
I have doubts concerning the log files location, I have 2 solutions :
1. If the log files are located on the hard disk, the logging performances are good but the IO activity is increased on the local hard disk and I suppose that it could decrease the global performances ?
2. If the log files are located on the netwotk file system, the IO  activities (logs and datas) are separated. But, in this case, the logging performances are worse than the local location and I don't know if the global performances can be affected/decreased ?
If someone can suggest me the best configuration, it will be very useful for me.

Best regards
Stéphane

Eliot Horowitz

unread,
Nov 4, 2012, 9:30:11 AM11/4/12
to mongo...@googlegroups.com
I would keep it local.
The log writing is buffered, and is highly unlikely to cause performance problems with the system.


Stéphane

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-dev/-/7CsvKEt8100J.
To post to this group, send email to mongo...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.

Stéphane

unread,
Nov 6, 2012, 5:06:33 AM11/6/12
to mongo...@googlegroups.com, el...@10gen.com
Thx for your answer, we kept logs locally.
Stéphane 
Reply all
Reply to author
Forward
0 new messages