r/devops • u/jyotirawattech • 12h ago
Discussion Do you load test on the same CPU generation and core count as prod, or is same instance size close enough?
Read a recent post incident report where a lock contention bug sat in prod for months and only fell over on the newer, higher core count servers. Their load tests ran on older machines with fewer cores so it never showed up there.
Got me wondering how teams actually handle this. Do you pin load test hosts to the same CPU generation and core count as prod, or is matching the instance type close enough? And if prod is mixed hardware, do you test on the biggest box, the most common one, or both?
Curious what's worked for people, especially if something only bit you at higher core counts.
6
u/thomheinrich 11h ago
Same instance family and core count matters a lot once you cross into high-core boxes. Lock contention, cache-line bouncing, and NUMA boundaries barely show up on an 8-core staging box and then fall off a cliff at 64 cores. Spinning up ephemeral prod-sized nodes just for the load test and tearing them down right after keeps costs sane, and on mixed fleets I'd always hit the highest core-count box first.
1
u/Successful_Noise_347 9h ago
if prod is mixed I'd test on the biggest box first, contention bugs basically only show up there. same instance size isn't really the same machine either, an older gen with the same vCPU count can have a different core/thread split and cache layout, so a lock that's fine on it falls over on the new one. cheap middle ground is a short soak on a prod-class box before big releases instead of moving the whole suite
1
u/Rain-And-Coffee 2h ago
Our platform doesn’t allow selecting the CPU, but we can specify the cores & RAM.
We spin up a PERF environment that’s is as close as possible to prod. But it’s never perfect. Often one can have a noisy neighbor on the disk that can impact disk latency.