Re: pgbench: could not connect to server: Resource temporarily unavailable

Поиск
Список
Период
Сортировка
От Kevin McKibbin
Тема Re: pgbench: could not connect to server: Resource temporarily unavailable
Дата
Msg-id CADc_NKh109RFvYEbmcGuAHDxixxJ0u3Qkso0Yry9s-H2ukY4aQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgbench: could not connect to server: Resource temporarily unavailable  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance

Thanks for your input everyone! I wanted to confirm that increasing the somaxconn also fixed the issue for me.

Kevin


$ cat /proc/sys/net/core/somaxconn
128

by default, which is right about where the problem starts.  After

$ sudo sh -c 'echo 1000 >/proc/sys/net/core/somaxconn'

*and restarting the PG server*, I can do a lot more threads without
a problem.  Evidently, the server's socket's listen queue length
is fixed at creation and adjusting the kernel limit won't immediately
change it.


В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgbench: could not connect to server: Resource temporarily unavailable
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: pgbench: could not connect to server: Resource temporarily unavailable