Reputation: 43
I'm a developer who start in the server management. I would like to how I can calculate the maximum number of users I can have on my machine at the same time in function of his own configuration and of his web workers.
Here I'm on a OVH dedicated server with an Intel Xeon D-1520, 4 core at 2.2GHz and with 32GB of RAM. My web server is NGINX.
Is a formula exits or some websites who can calculate this number ?
Thanks a lot!
Upvotes: 1
Views: 2463
Reputation: 94
Yes You can calculate it based on your cpu and worker connections: like this: Config file:
worker_processes 4; # 2 * Number of CPUs
events {
worker_connections 19000; # It's the key to high performance - have a lot of connections available
}
worker_rlimit_nofile 20000; # Each connection needs a filehandle (or 2 if you are proxying)
# Total amount of users you can serve = worker_processes * worker_connections
Reference: Tuning nginx worker_process to obtain 100k hits per min
Upvotes: 1