No mention about somaxconn

Started by Tatsuo Ishiiabout 6 years ago2 messagesdocs
Jump to latest
#1Tatsuo Ishii
t-ishii@sra.co.jp

Currently there's no mention about net.core.somaxconn parameter needs
to be adjusted if max_connections is large and UNIX domain socket is
used for connection. Since the default for the kernel parameter is
small (typically 128), it is easy to hit the limitation and you will
get errors something like:

could not connect to server: Resource temporarily unavailable

I don't know if this should be applied to other OS as well though.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp

#2Andres Freund
andres@anarazel.de
In reply to: Tatsuo Ishii (#1)
Re: No mention about somaxconn

Hi,

On 2020-03-03 10:48:56 +0900, Tatsuo Ishii wrote:

Currently there's no mention about net.core.somaxconn parameter needs
to be adjusted if max_connections is large and UNIX domain socket is
used for connection. Since the default for the kernel parameter is
small (typically 128), it is easy to hit the limitation and you will
get errors something like:

could not connect to server: Resource temporarily unavailable

I don't know if this should be applied to other OS as well though.

Yea, that'd be good. Care to suggest a patch?

Greetings,

Andres Freund