Re: Reliable WAL file shipping over unreliable network

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Reliable WAL file shipping over unreliable network
Дата
Msg-id 20180302180911.GO2416@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Reliable WAL file shipping over unreliable network  (Rui DeSousa <rui.desousa@icloud.com>)
Ответы Re: Reliable WAL file shipping over unreliable network
Список pgsql-admin
Greetings,

* Rui DeSousa (rui.desousa@icloud.com) wrote:
> > On Mar 1, 2018, at 12:21 AM, scott ribe <scott_ribe@elevated-dev.com> wrote:
> > The false report of success is not good, but it's not the root problem.
>
> A false success if a problem; especially in this use case as the source WAL file will be deleted by Postgres before
itwas truly successful.  While monitoring is nice to avoid the issue it is not a fix for the issue. 
>
> I personally cannot recommend the use of rsync in this application for two reasons.

There's a bigger problem that I'm amazed hasn't been brought up already-
the rsync, copy, cp, whatever, may finish just fine and then the system
that the WAL file was copied to crashes and you end up losing a bunch of
WAL because none of these methods actually sync's the WAL to disk.

No archive_command should ever return success until the WAL is actually
written out to permanent storage and sync'd.  That's what tools like
pgBackRest do and is part of the reason why people really shouldn't try
to hack up their own archive_command solution but should be using well
tested existing solutions.

Thanks!

Stephen

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: What is the accepted practice to automate initdb (PostgreSQL 9.6) to a non-default directory?
Следующее
От: Rui DeSousa
Дата:
Сообщение: Re: Reliable WAL file shipping over unreliable network