Menu

1 / 11

How to Know When to Scale Your MongoDB Atlas Cluster - Part 2: Benchmarking Your Workload with Locust

DEV Community: mongodb·Tim Kelly·5 days ago
#M2D5nckB
#devtomongodb#devto#dev#load#benchmark
Long article (3906 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.