[DOCS-1537] Comment on: "manual/administration/production-notes.txt" Created: 23/May/13  Updated: 07/Mar/22  Resolved: 12/Jun/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, AWS

Location: http://docs.mongodb.org/manual/administration/production-notes/#readahead
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
Referrer: http://stackoverflow.com/questions/16715961/mongodb-readahead-warning
Screen Resolution: 1440 x 900
repo: docs
source: administration/production-notes


Participants:
Days since reply: 1 year, 48 weeks, 2 days ago

 Description   

I'm receiving this warning when starting my MongoDB shell:

Wed Mar 20 22:40:49.850 [initandlisten]

Wed Mar 20 22:40:49.850 [initandlisten] ** WARNING: Readahead for /data is set to 2048KB

Wed Mar 20 22:40:49.850 [initandlisten] ** We suggest setting it to 256KB (512 sectors) or less

Wed Mar 20 22:40:49.850 [initandlisten] ** http://dochub.mongodb.org/core/readahead

I've used:

df /data

To find where the drive is that my data is mounted and subsequently used:

sudo blockdev --setra 256 /dev/mapper/vg0-data

to set the readahead to the 256 that was specified. I've confirmed this has worked with:

sudo blockdev --getra /dev/mapper/vg0-data

I'm still however getting the same error when starting my shell?

UPDATE

I've restarted the mongodb server instance and am still receiving this error.

UPDATE 2

My linux server is hosted on AWS and therefore uses virtual volumes. I have set the readahead value for all those volumes to 256 and still receive this error.



 Comments   
Comment by Githook User [ 07/Mar/22 ]

Author:

{'name': 'Dave', 'email': '69165704+davemungo@users.noreply.github.com', 'username': 'davemungo'}

Message: DOCS-1537 BACKPORT (#749)
Branch: v4.4
https://github.com/10gen/docs-mongodb-internal/commit/21739db6bade9dcfb83653ab4876fafde72333a6

Comment by Githook User [ 07/Mar/22 ]

Author:

{'name': 'Dave', 'email': '69165704+davemungo@users.noreply.github.com', 'username': 'davemungo'}

Message: DOCS-1537 BACKPORT (#748)
Branch: v5.0
https://github.com/10gen/docs-mongodb-internal/commit/ecf8b3fc1ba5811d70d2b7ef705ce1881b84b009

Comment by Githook User [ 07/Mar/22 ]

Author:

{'name': 'Dave', 'email': '69165704+davemungo@users.noreply.github.com', 'username': 'davemungo'}

Message: DOCS-1537 BACKPORT (#747)
Branch: v5.2
https://github.com/10gen/docs-mongodb-internal/commit/c3402063c79b9acfd460ff3fb52b53a17e78207c

Generated at Thu Feb 08 07:41:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.