Setting Readahead for MongoDB volume
Issue
-
We are receiving warning in MongoDB related to Readahead of the MongoDB volume
WARNING: Readahead for /var/lib/mongodb/data is set to 4096KB", We suggest setting it to 256KB (512 sectors) or less", -
The readhead setting was adjusted by using the command:
blockdev --setra 256 /dev/mapper/vg_os-mongodb -
How can this setting be made persistent?
Environment
- Red Hat Enterprise Linux OpenStack Platform on RHEL 7
- Satellite 6 on RHEL 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
