> 2. nginx.conf:

The default value for this in nginx is: `listen $port [backlog=511]`

$ ss -lnt
State      Recv-Q Send-Q   Local Address:Port Peer Address:Port
LISTEN     0      511      *:9180  *:*

And the real `running nginx's backlog` value is:
MIN(net.ipv4.tcp_max_syn_backlog, net.core.somaxconn, nginx's listen
backlog)



YuanSheng Wang <[email protected]> 于2020年4月15日周三 下午5:06写道:

> > 1. System parameters:
>
> We can write it in the user installation manual.
>
> > 2. nginx.conf:
>
> How about changing the default value of `backlog` to 512?
>
> According to the current hardware and network, this value is better.
>
>
> On Wed, Apr 15, 2020 at 3:56 PM hui li <[email protected]> wrote:
>
> > APISIX backlog is currently the default value(Usually 128), and it is
> prone
> > to packet loss in the listen queue and semi-link queue in large
> concurrent
> > scenarios.
> >
> > APISIX is based on nginx. The backlog value of nginx is determined by two
> > system configurations and one configuration value in nginx.conf:
> > 1. System parameters:
> > sysctl net.ipv4.tcp_max_syn_backlog
> > sysctl net.core.somaxconn
> > 2. nginx.conf:
> > default_server backlog
> >
> > How to check the backlog size of APISIX process?
> > Use the 'ss -lnt' command
> >
>
>
> --
> *MembPhis*
> My github: https://github.com/membphis
> Apache APISIX: https://github.com/apache/incubator-apisix
>

Reply via email to