Welcome back to How to Know When to Scale Your MongoDB Atlas Cluster. In Part 1, we chose a starting Atlas tier based on what we expected our application to need. In part 2, we learned how to benchmark our tiers against our workloads, and interpret the results. In this part, we are going to focus on turning everything we've learned into a scaling strategy.
Turning benchmark results into a scaling strategy
We've seen how MongoDB Atlas responds to increasing workloads and how to investigate the resources that might be limiting performance. But benchmarking is only the starting point. The real challenge is turning those results into informed scaling decisions in production.
Establishing your performance baseline
Start by defining the performance your application needs to maintain, including acceptable p95 and p99 latency, expected throughput, and sufficient headroom for traffic spikes.
In our M10 benchmark, we sustained 1,000 operations per second while keeping p95 latency below 200 ms. At 1,500 operations per second, throughput continued increasing, but latency exceeded our target.
This gives us a useful performance baseline, but it doesn't mean we should operate at 1,000 operations per second continuously. Instead, we should plan for additional headroom and validate sustained capacity through longer tests.
Remember that benchmark results aren't permanent capacity guarantees. Changes to your dataset, queries, indexes, and traffic patterns can all affect how much work your cluster can handle.
Knowing when to take action
Use your benchmark results as a reference when evaluating production performance:
| What you observe | Recommended action |
|---|---|
| Throughput increases, latency remains stable | Continue monitoring |
| High CPU and deteriorating latency | Investigate expensive queries and test a larger tier |
| Cache pressure and increasing disk reads | Evaluate working-set size and memory requirements |
| Excessive documents examined | Optimize queries and indexes |
| Growing operation queues and plateauing throughput | Investigate resource saturation |
| Healthy performance but increasing demand | Plan ahead and benchmark the next tier |
These observations aren't automatic triggers to scale. They're signals that help us decide what to investigate before making a change.
Monitoring and planning ahead
Use Atlas Alerts to monitor resource utilization and notify you when performance approaches concerning levels. Rather than relying on arbitrary thresholds or reacting to isolated spikes, use your benchmark results and production behaviour to establish alerts that reflect sustained pressure on your cluster.
For eligible dedicated clusters, Atlas Compute Auto-Scaling can help accommodate changing resource demands within configured limits. However, scaling takes time, and auto-scaling won't resolve inefficient queries or eliminate the need for capacity planning.
As your application grows, monitor throughput and latency trends, revisit your performance targets, and repeat your benchmarks when the workload changes significantly.
Conclusion: Measure, don't guess
So, how do you know when it's time to scale your MongoDB Atlas cluster?
There's no universal queries-per-second threshold that tells you when to upgrade. Every application has different query patterns, data volumes, concurrency requirements, and performance expectations.
As we've seen, benchmarking isn't simply about finding the maximum throughput your cluster can handle. It's about understanding how your workload behaves under increasing demand, identifying bottlenecks, and determining whether additional resources would actually improve performance.
Before scaling, investigate your queries, indexes, and resource utilization. Establish a performance baseline, monitor how your application behaves as traffic grows, and test larger configurations when necessary.
You can get started with my MongoDB Locust Load Tester or build your own benchmarking environment. Whichever approach you choose, reproduce your application's workload as closely as possible. The more representative your benchmark, the more useful its results will be.
Ultimately, the right cluster isn't the one that handles the most queries per second. It's the one that reliably meets your application's performance requirements without unnecessary infrastructure costs.
