• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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