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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench: could not connect to server: Resource temporarily unavailable
Дата
Msg-id 3909995.1661052002@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgbench: could not connect to server: Resource temporarily unavailable  (Kevin McKibbin <kevinmckibbin123@gmail.com>)
Ответы Re: pgbench: could not connect to server: Resource temporarily unavailable  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-performance
Kevin McKibbin <kevinmckibbin123@gmail.com> writes:
> What's limiting my DB from allowing more connections?

> This is a sample of the output I'm getting, which repeats the error 52
> times (one for each failed connection)

> -bash-4.2$ pgbench -c 200 -j 200 -t 100 benchy
> ...
> connection to database "benchy" failed:
> could not connect to server: Resource temporarily unavailable
>         Is the server running locally and accepting
>         connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?

This is apparently a client-side failure not a server-side failure
(you could confirm that by seeing whether any corresponding
failure shows up in the postmaster log).  That means that the
kernel wouldn't honor pgbench's attempt to open a connection,
which implies you haven't provisioned enough networking resources
to support the number of connections you want.  Since you haven't
mentioned what platform this is on, it's impossible to say more
than that --- but it doesn't look like Postgres configuration
settings are at issue at all.

            regards, tom lane



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

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