Re: Issue with pg_basebackup v.11

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Issue with pg_basebackup v.11
Дата
Msg-id 2715482.1634918995@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Issue with pg_basebackup v.11  (Ninad Shah <nshah.postgres@gmail.com>)
Ответы Re: Issue with pg_basebackup v.11
Список pgsql-general
Ninad Shah <nshah.postgres@gmail.com> writes:
> What I observed is that it takes a couple of hours between below 2 lines.

>  115454656/1304172127 kB (8%), 0/1 tablespace
> (...atastaging/base/115868/154220.2)
> pgbasebackup: could not read COPY data: could not receive data from server:
> Connection timed out

We have heard reports of network connections dropping while pg_basebackup
is busy doing something disk-intensive such as fsync'ing.  The apparent
2-hour delay here does not mean that pg_basebackup was out to lunch for
2 hours; more likely that reflects the TCP timeout delay before the kernel
realizes that the connection is lost.  The actual blame probably resides
with some firewall or router that has a short timeout for idle
connections.

I'd try turning on fairly aggressive TCP keepalive settings for the
connection, say keepalives_idle=30 or so.

            regards, tom lane



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Looking for a doc section that presents the overload selection rules
Следующее
От: Bryn Llewellyn
Дата:
Сообщение: Re: Looking for a doc section that presents the overload selection rules