Re: archive_command too slow.

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: archive_command too slow.
Дата
Msg-id CAGTBQpY-TS2GM1FnfAQUdHvvK86a1a-Ntw6s83w3OU2Fwu-=yA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: archive_command too slow.  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-performance
On Fri, Nov 4, 2016 at 1:19 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> If setting up the ssh tunnel is the problem, you could assess whether you
> really need that security, or compile a custom postgresql with larger WAL
> file sizes, or write a fancy archive_command which first archives the files
> to a local directory, and then transfers them in chunks to the slave.  Or
> maybe use streaming rather than file shipping.

Another option is to use ssh's ControlMaster and ControlPersist
features to keep the SSH tunnel alive between commands.

You'd have to set up the RSYNC_CONNECT_PROG environment variable on
your archive command for that and include the relevant options for ssh
in the command.


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: archive_command too slow.
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: no MCV list of tiny table with unique columns