# MongoDB server performance tuning notes ## Ref: https://dzone.com/articles/tuning-linux-for-mongodb https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/ https://docs.mongodb.com/manual/administration/production-notes/#std-label-readahead https://www.mongodb.com/blog/post/performance-best-practices-transactions-and-read--write-concerns https://www.percona.com/blog/2018/09/27/automating-mongodb-log-rotation/ # Add blockdev command to set readahead in /etc/rc.local # Set readahead for mongodb storage device blockdev --setra 32 /dev/ Future Further Improvements: - It is best to use RAID 1+0 with 4 SSDs for MongoDB server storage - Further tuning with readahead from 16 to 32 sectors of 512 bytes (16 KBs)