Re: Streaming replication, master recycling

Поиск
Список
Период
Сортировка
От Venkata Balaji N
Тема Re: Streaming replication, master recycling
Дата
Msg-id CAEyp7J-P+E1i24g6TnDNj=ib9yENS+XP-pTs2v3aNM-TmSjodQ@mail.gmail.com
обсуждение исходный текст
Ответ на Streaming replication, master recycling  (<fredrik@huitfeldt.com>)
Ответы Re: Streaming replication, master recycling  (<fredrik@huitfeldt.com>)
Список pgsql-general

On Wed, May 11, 2016 at 2:31 PM, <fredrik@huitfeldt.com> wrote:
Hi All,

we are currently using streaming replication on multiple node pairs. We are seeing some issues, but I am mainly interrested in clarification.

When a failover occurs, we touch the trigger file, promoting the previous slave to master. That works perfectly.

For recycling the previous master, we create a recovery.conf (with recovery_target_timeline = 'latest') and *try* to start up. If postgresql starts up, we accept it as a new slave. If it does not, we proceed with a full basebackup.

Which version of postgresql you are using ?

You need to shutdown master first, then promote slave and then other way round, but, this can be clarified only if you let us know the postgresql version. This is quite tricky in 9.2.x and from 9.3.x.

Regards,
Venkata B N

Fujitsu Australia

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

Предыдущее
От: martin.kamp.jensen@schneider-electric.com
Дата:
Сообщение: Re: Invalid data read from synchronously replicated hot standby
Следующее
От:
Дата:
Сообщение: Re: Streaming replication, master recycling