[DOCS-858] changing ulimit -n on EC2 instances running Amazon Linux Created: 07/Dec/12  Updated: 05/Jul/13  Resolved: 07/Dec/12

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

Type: Improvement Priority: Major - P3
Reporter: Thomas Rueckstiess Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 32 weeks, 5 days ago

 Description   

http://docs.mongodb.org/manual/administration/ulimit/#review-and-set-resource-limits

It says you can change the max number of open files to 20000 with

ulimit -n 20000

But that fails on Amazon Linux EC2 instances with this error:

-bash: ulimit: open files: cannot modify limit: Operation not permitted

This link describes how to do it (and how it is persistent as well):
http://stackoverflow.com/questions/11342167/how-to-increase-ulimit-on-amazon-ec2-instance

We should mention this on our documentation since many customers will probably work with Amazon Linux on EC2.



 Comments   
Comment by pj [ 05/Jul/13 ]

It would have probably took less effort to actually just give a sentence of what is needed for a common cloud distribution (EC2), than what was put forth in the explanation of why you were not doing it in this ticket.

Comment by auto [ 07/Dec/12 ]

Author:

{u'date': u'2012-12-07T15:26:22Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-858: clarify ulimit instructions
Branch: master
https://github.com/mongodb/docs/commit/b31bc318cbf2bd058f4ec677273da220efee206e

Comment by Sam Kleinman (Inactive) [ 07/Dec/12 ]

this document does not mention or describe specifics for different distributions of linux, and I think that's beyond the scope of this document to give instruction on operating system-specific configuration processes. Not only is that outside of scope, but given the fact that we theoretically support countless distribution there's no good place to draw boundaries on this, and more importantly no good way to keep track of changes in behavior as things change in various distributions.

I'm adding a sentence to tell people to refer to their operating system instructions for clarifications on procedure.

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