[DOCS-471] Documentation should cover recommended ulimit settings for Linux installation Created: 31/Aug/12 Updated: 30/Oct/23 Resolved: 10/Oct/12 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | William Zola | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | supportability | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Days since reply: | 11 years, 18 weeks, 6 days ago | ||||||||||||||||||||
| Description |
|
Documentation should cover the OS settings required to run mongodb at scale. Discussion: The Linux OS limits cover number of open files/sockets per process, number of threads per user, and various other per-process limits. If these are set too low, mongod/mongos will fail with various errors. For mongod running standalone or in a replica set (non-sharded):
For mongos (running in a sharded cluster):
Here are the values I'd recommend for the 'ulimit' settings for the MongoDB processes:
Diagnosing problems: On Linux, users can determine the limits for the mongod/mongos processes by examining the contents of the file /proc/$PID/limits, where $PID is the process ID of the mongod/mongos process in question. |
| Comments |
| Comment by auto [ 11/Oct/12 ] |
|
Author: {u'date': u'2012-10-11T08:01:04-07:00', u'email': u'bob.grabar@10gen.com', u'name': u'Bob Grabar'}Message: |
| Comment by auto [ 10/Oct/12 ] |
|
Author: {u'date': u'2012-10-10T13:53:54-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: |
| Comment by auto [ 10/Oct/12 ] |
|
Author: {u'date': u'2012-10-10T08:21:40-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: |
| Comment by auto [ 09/Oct/12 ] |
|
Author: {u'date': u'2012-10-09T15:31:06-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: minor: |
| Comment by auto [ 09/Oct/12 ] |
|
Author: {u'date': u'2012-10-09T15:26:42-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: merge: |
| Comment by auto [ 09/Oct/12 ] |
|
Author: {u'date': u'2012-10-09T15:13:01-07:00', u'email': u'bob.grabar@10gen.com', u'name': u'Bob Grabar'}Message: |
| Comment by auto [ 09/Oct/12 ] |
|
Author: {u'date': u'2012-10-09T14:30:47-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}Message: |
| Comment by Sam Kleinman (Inactive) [ 09/Oct/12 ] |
|
What are the resource utilization factors of the mongod instances in a shard cluster, and how do they differ from more simple deployments? |