Comments on: Tuning Linux for MongoDB https://www.percona.com/blog/tuning-linux-for-mongodb/ Tue, 06 Feb 2024 00:13:01 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Mike https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10972617 Tue, 11 Aug 2020 04:58:37 +0000 https://www.percona.com/blog/?p=36990#comment-10972617 The noatime advice is no longer really as big a deal for performance, since relatime has been the default for a while, nor was it ever ideal.

atime should only get updated once per 24 hours, and/or along with mtime during writes to the file.

Having a very old false atime can itself be problematic, since you or tooling might incorrectly supposed that a file on an unfamiliar workload is never used.

]]>
By: Tim Vaillancourt https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10968062 Fri, 05 May 2017 22:16:23 +0000 https://www.percona.com/blog/?p=36990#comment-10968062 Hi Kindox, yes in this case you will need to replace “mongod” with “mongodb”

]]>
By: Kindox https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10968045 Tue, 02 May 2017 15:42:05 +0000 https://www.percona.com/blog/?p=36990#comment-10968045 In the section about Ulimit, you mentioned “mongod” user but according to the top command in my deployment, the user is “mongodb” (by default) instead of “mongod” so I guess I should replace “mongod” by “mongodb” in the config file, right?

]]>
By: Tim Vaillancourt https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10967353 Tue, 15 Nov 2016 21:32:00 +0000 https://www.percona.com/blog/?p=36990#comment-10967353 Thank you Sanjay.

While these tunings are mostly focussed on shard/data nodes (“mongod” process), we recommend applying these tunings on any MongoDB node. As “mongos” doesn’t use the disk, the disk subsystem tunings will probably go unnoticed, for example, but they also won’t create any negative effect.

]]>
By: Tim Vaillancourt https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10967352 Tue, 15 Nov 2016 21:28:33 +0000 https://www.percona.com/blog/?p=36990#comment-10967352 Good point Lesovsky, yes many of these tunings can be applied using various “online” reload-style commands. To be 100% sure you know what to expect in the future we feel it is always safest to apply these changes via a full reboot, if possible, however.

]]>
By: Sanjay https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10966845 Wed, 24 Aug 2016 20:13:31 +0000 https://www.percona.com/blog/?p=36990#comment-10966845 Great Article Tim !!! In case, if we running mongod and mongos process on separate machine. Is above tuning options applicable only to “mongod” process or to both process?

]]>
By: Lesovsky https://www.percona.com/blog/tuning-linux-for-mongodb/#comment-10966805 Tue, 16 Aug 2016 16:34:52 +0000 https://www.percona.com/blog/?p=36990#comment-10966805 Btw, you can remount filesystems with different options on the fly using the ‘remount’ option, even if its a rootfs. For example, mount -o remount,other_opts_here /

]]>