Re: Help on recovering my standby

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: Help on recovering my standby
Дата
Msg-id 1630906.LcAZ5ryrVX@skynet.simkin.ca
обсуждение исходный текст
Ответ на Help on recovering my standby  ("Ramalingam, Sankarakumar" <Sankarakumar.Ramalingam@elavon.com>)
Ответы Re: Help on recovering my standby  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On Tuesday 21 June 2016 19:34:18 Ramalingam, Sankarakumar wrote:
> Hi I have my standby (streaming replication) down due to missing wal files.
> You would see the same error in the logs stating "cannot find the wal file
> ..." What is the best way to get it going so that when we switch between
> standby and primary once in a while they are in sync?
>
> Currently I am working on a CERT server and hence there is no outage
> concerns. I need to repeat the same process on prod once I get it going
> successfully. Any help is appreciated.
>

You should keep your WAL files from the master for at least as long as the
slave might be offline (plus startup time), somewhere the slave can copy them
from when needed (shared file system, object store, scp target, whatever).

See the postgresql.conf parameter archive_command and the corresponding
recovery.conf parameter restore_command.



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

Предыдущее
От: Catalin Maftei
Дата:
Сообщение: Re: ***SPAM*** Re: random huge delay when recreate a VIEW or FUNCTION
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Help on recovering my standby