Re: Having trouble configuring a Master with multiple standby Servers in PostgreSQL 9.3.3

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Having trouble configuring a Master with multiple standby Servers in PostgreSQL 9.3.3
Дата
Msg-id CAB7nPqR7gJCF1XffKUQY_-95srAAUx6sXU5QcuFO9Cgx72D_NA@mail.gmail.com
обсуждение исходный текст
Ответ на Having trouble configuring a Master with multiple standby Servers in PostgreSQL 9.3.3  (<fburgess@radiantblue.com>)
Список pgsql-bugs
TODO

On Thu, Apr 17, 2014 at 1:29 AM,  <fburgess@radiantblue.com> wrote:
> Now the issue is with the recovery.conf file on slave1, should the
> restore_command point to the archivelogs on the master?
Yes, this is where archive_command of master copies the WAL files. You need
them for recovery operations on slaves.

> Do I run the archive_cleanup_command when I recover slave1 or do I wait
> until I have finished backup/copy from the slave2
Be careful here, this command may remove WAL files that are needed by other
slaves. For example, if slave1 kicks this command, you may remove files
still needed by slave2 that has not yet done any recovery operation and it
may need them.

> postgresql.conf - Slave1
> restore_command = 'cp /mnt/server/master_archivedir/%f "%p%"'      <---
****
> Is this correct! **** The master remains on-line and is producing archive
> logs.
No need to have that much complexity for %p:
restore_command = 'cp -i /mnt/server/master_archivedir/%f %p'

> postgresql.conf - Slave2 Server VM
> restore_command = 'cp /mnt/server/slave2_archivedir/%f "%p%"'      <---
****
> Is this correct! **** The master remains on-line and is producing archive
> logs.
Please see above, it could be more simple.
--
Michael

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #9136: pg_is_xlog_replay_paused() should not need Superuser
Следующее
От: 德哥
Дата:
Сообщение: Re: BUG #10013: PostgreSQL 9.4 initdb FATAL: could not write to file "pg_xlog/xlogtemp.3590": No space left on devi