• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question worker_connections are not enough

LucaB.

Basic Pleskian
Hi,
we have a Plesk 12.30 #60 with nginx. In this server (2CPU and 2GB RAM) are running 50 websites and this morning ngnix writes "worker_connections are not enough". In /etc/nginx/nginx.conf I've changed it from 1024 to 2048. it's enough? There are other parameters to be controlled?

The website will increase to 70 in a few days.

Luca
 
There is following formula for determining nginx worker_processes and worker_connections:

max_clients = worker_processes * worker_connections

Where worker_processes [number of processor cores], for instance:

# cat /proc/cpuinfo |grep processor
processor : 0
processor : 1
processor : 2
processor : 3
processor : 4
processor : 5

So,

worker_processes 6;

Thus, you can calculate the desired value for worker_connections
 
Back
Top