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. Now let’s put that choice to the test. How much traffic can the cluster handle before requests start taking longer than our application can tolerate?
We’ll use a load tester I built with Locust to run the same read-heavy workload against Flex, M10, and M30, increasing the load in stages. At each stage, we’ll measure how much work each cluster completes and whether p95 latency stays below our example target of 200 ms. Then we’ll use Atlas metrics to investigate what happens as response times climb.
The load tester is an unofficial project you can configure to match your application’s mix of reads, writes, and aggregations.…