Welcome! Log In Create A New Profile

Advanced

How to scale worker_connections

Posted by arunnginx 
How to scale worker_connections
June 29, 2021 06:06PM
I have set up an Nginx instance with the below config values.

[CODE]
worker_processes 4;

events {
worker_connections 20000;
}
[/CODE]

I expected nginx to create 4*20000=80,000 connections, but I see that nginx still maxes out at 20,000. I have verified ulimits as well which is not limiting the connections. I have a 4 cpu with 8GB of RAM. Suggestions please on why Nginx is not able to scale as intended? Thanks in advance.

[ERROR LOG]
2021/06/29 17:34:28 [alert] 47545#47545: 20000 worker_connections are not enough

2021/06/29 17:34:28 [alert] 47545#47545: *61951997 20000 worker_connections are not enough while connecting to upstream, client: 107.77.224.143, server: .com, request: "PUT /3049/7060/report HTTP/1.1", upstream: "/7060/report", host: "host
[/ERROR LOG]



Edited 1 time(s). Last edit at 06/29/2021 06:10PM by arunnginx.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready