Home / Companies / MongoDB / Blog / Post Details
Content Deep Dive

Tuning MongoDB & Linux to allow for tens of thousands connections

Blog post from MongoDB

Post Details
Company
Date Published
Author
Henrik Ingo
Word Count
1,002
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

MongoDB has a default limit of 64k incoming connections, and creating a thread per connection can lead to performance issues on Linux servers due to limited ulimits such as nofile, nproc, and stack. Increasing these limits using the `ulimit` command and adjusting kernel settings like `max_map_count` and `ip_local_port_range` can help create tens of thousands of connections. The author found that EC2 instances from certain instance types (M5) have a lower limit on incoming connections compared to others (c3), highlighting the importance of considering instance type when tuning for high-performance connections.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.