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

Performance Best Practices: Hardware and OS Configuration

Blog post from MongoDB

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

Performance Best Practices: Hardware and OS Configuration` is a crucial aspect of achieving optimal performance for MongoDB, especially in large-scale deployments. To ensure that the working set fits within RAM, it's essential to have sufficient RAM size, as other optimizations may not significantly improve performance if there's insufficient RAM. Using multiple CPU cores can also lead to better performance, with each core represented by its own thread and background worker threads performing tasks like checkpointing and cache eviction. Running one mongod process per host is recommended for best performance, and using virtualization or container technologies can enable multiple processes to safely run on a single physical server without contending for resources. Configuring the WiredTiger Cache is also critical, with the size of the cache being tunable through the `storage.wiredTiger.engineConfig.cacheSizeGB` setting. Using multiple query routers and interleave policy on NUMA architecture can further improve performance, while network compression can reduce bandwidth costs in bandwidth-constrained environments. Storage and disk I/O considerations are also essential, with high-performance storage, SSDs for IO-intensive applications, and RAID-10 configurations recommended for most MongoDB deployments. Additionally, using MongoDB's default compression for storage and I/O-intensive workloads can provide significant performance benefits.

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.