Welcome! Log In Create A New Profile

Advanced

Re: Nginx Tuning

Richard Stanway
July 04, 2017 08:24AM
You shouldn't be changing worker_connections, this is the total number of
connections (of any type) permitted per worker.

Take a look at the documentation at http://nginx.org/en/docs/

Of interest to you are
http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html and
http://nginx.org/en/docs/http/ngx_http_core_module.html#limit_rate

On Tue, Jul 4, 2017 at 10:01 AM, guruprasads <nginx-forum@forum.nginx.org>
wrote:

> Hi,
>
> I am trying to tune nginx server.
> I want to restrict number of client connection per server and restrict
> bandwidth.
> I tried
> worker_connections 2;
> for max connections in nginx.conf file.
> but its connecting only after worker_connection value set to 7.
>
> my conf file look like below.
>
> user nginx;
> worker_processes auto;
> error_log /var/log/nginx/error.log;
> pid /run/nginx.pid;
>
> # Load dynamic modules. See /usr/share/nginx/README.dynamic.
> include /usr/share/nginx/modules/*.conf;
>
> events {
> worker_connections 7;
> }
>
> thanks.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,275276,275276#msg-275276
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx Tuning

guruprasads July 04, 2017 04:01AM

Re: Nginx Tuning

Richard Stanway July 04, 2017 08:24AM

Re: Nginx Tuning

Maxim Dounin July 04, 2017 08:28AM

Re: Nginx Tuning

pbooth July 04, 2017 12:56PM

Re: Nginx Tuning

gariac July 04, 2017 03:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready