I'm running into issues while doing some stress testing in jMeter. Essentially, we're hitting a hard limit of 68 concurrent users. As soon as the test ramps up to that number of users, we're getting 502 bad gateway errors.
The thing that's interesting is that we're getting the very same behavior of failures at 68 users on a VM with double the CPU and RAM. So that leads me to believe this is a configuration issue. After all, configurations are identical between our docker containers on each server.
I've tried raising the worker_connections setting in nginx.conf but that has no effect. I even restarted the machine to make sure the new setting was being applied.
Are there any other ideas for what to look into or try?
I'm not sure if this helps but here's our configuration on the nginx server that's failing...