switchover and switchback assistance ...

Поиск
Список
Период
Сортировка
От itman73@protonmail.com
Тема switchover and switchback assistance ...
Дата
Msg-id 005901d86b08$48fcd830$daf68890$@protonmail.com
обсуждение исходный текст
Список pgsql-general

Hi, folks;

I’m in the process of testing PG v12.7 hot streaming standby’s in async mode, and specifically in the area of reliable switchover and switchback operations.

I have created test primary’s and standby’s successfully with pg_ctl initdb and pg_basebackup respectively. I can switch over/switch roles (standby -> primary, primary -> standby) successfully one time. When I switch roles a second time, the standby becomes primary just fine but the primary to standby fails to open properly.  Logfile messages for both primary and standby are attached as well as pg_wal and archive directory lists.

I shut down the primary first and then promote the standby. The only action I take on the standby side is to create the standby.signal file in $PGDATA. (Well almost. Initially, I do have to have an empty 00000000.history file in the archive locations or the standby’s fail to start.)

My archive directories are separate from each other and the archive command is the given test … cp -p example in the docs. archive_mode is ‘on’ on both sides.

Are there other undocumented manual steps I should be completing before starting the new standby?  

I would appreciate review of the attached logs to help pinpoint the issue.  Inst1 is the primary/standby/primary, and inst2 is the standby/primary/standby.

Many thanks!
David

 

 

 

Вложения

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Who am I? Where am I connected?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Who am I? Where am I connected?