No mention about somaxconn

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No mention about somaxconn

Tatsuo Ishii-3
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


Reply | Threaded
Open this post in threaded view
|

Re: No mention about somaxconn

Andres Freund
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