Z
Zerops2mo ago
minsomai

simulate 100 users request, L7 balancer help

I'm trying to simulate 100 users request in parallel. I don't see any spikes in the resource usage but the server is timing out. Is there any special configuration I need to do, need help please. 73HAMn4YTAyDF2I3BBJDTA this is the porject id, I'm testing the subdomain one.
12 Replies
Jan Saidl
Jan Saidl2mo ago
Hi @minsomai , first it's possible to look at the l7 balancer logs here: https://app.zerops.io/project/73HAMn4YTAyDF2I3BBJDTA/logging?serviceStackId=6T5sl4bER72ewHo9enAC7w&minimumSeverity=3 I looked at the logs for your application (nodejs) but there aren't any logs there. For better debugging, it might be good to see if the application is working correctly.
minsomai
minsomaiOP2mo ago
ok, so assumption is the server is crashing right?
Jan Saidl
Jan Saidl2mo ago
In the case of Node.js, horizontal scaling across multiple containers (if the application supports it) can certainly help more than vertical scaling.
minsomai
minsomaiOP2mo ago
so more active containers with fewer resources?
Jan Saidl
Jan Saidl2mo ago
It very much depends on how the application is written. You can't say that in general.
minsomai
minsomaiOP2mo ago
ok
Jan Saidl
Jan Saidl2mo ago
Generally, Node.js is a single-threaded programme (unless you're using a process manager), so there's not much point in scaling to multiple CPUs. Instead, you need more processes, which more containers will provide. But as I write, it very much depends on how the application itself is written.
Jan Saidl
Jan Saidl2mo ago
If the application can expose some metrics, it's possible to collect them to get a better overview of what's happening in the application. Zerops has Prometheus integration https://app.zerops.io/project/73HAMn4YTAyDF2I3BBJDTA/observability but that requires support within the application itself.
No description
Jan Saidl
Jan Saidl2mo ago
It can then also be used as a central system for multiple projects. Unfortunately, we are still working on the documentation. I also noticed you mentioned you're testing via a Zerops subdomain? Be careful there, the limits are set lower because it's a shared element for multiple users.
minsomai
minsomaiOP2mo ago
no, I'm testing from our custom domain(sub)
Jan Saidl
Jan Saidl2mo ago
Finally, it's possible to start tuning Nginx parameters on the L7 balancer. But I'd only try that once it's certain the problem isn't the application itself. https://app.zerops.io/project/73HAMn4YTAyDF2I3BBJDTA/routing
Jan Saidl
Jan Saidl2mo ago
No description

Did you find this page helpful?