r/devops • u/jyotirawattech • 56m 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.
•
u/thomheinrich 1m 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.