Linux kernel parameter

From HPCWIKI
Revision as of 12:36, 3 January 2024 by Admin (talk | contribs) (Created page with "== net.core.somaxconn == somaxconn is used to set the maximum number of connections that can be queued for a socket. This parameter is used to prevent a flood of connection requests from overwhelming the system. The maximum value for the <code>net.core.somaxconn</code> parameter depends on the system and kernel version. The default value for the <code>net.core.somaxconn</code> Linux kernel parameter is typically 128 and the maximum value is around 65535 on most systems...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

net.core.somaxconn

somaxconn is used to set the maximum number of connections that can be queued for a socket. This parameter is used to prevent a flood of connection requests from overwhelming the system. The maximum value for the net.core.somaxconn parameter depends on the system and kernel version.

The default value for the net.core.somaxconn Linux kernel parameter is typically 128 and the maximum value is around 65535 on most systems.

For Nginx

It is important to set the net.core.somaxconn parameter to a value that is larger than the backlog value of NGINX, as the backlog value is used to determine the maximum number of connections that can be queued for a listening socket of NGINX only. If the net.core.somaxconn value is smaller than the backlog value, NGINX will not be able to queue all the incoming connections, resulting in connection errors.[1]

References