PostgreSQL replication failover

Поиск
Список
Период
Сортировка
От Jan Peters
Тема PostgreSQL replication failover
Дата
Msg-id trinity-64a56362-8af1-4ec9-b408-d4256ce65fd2-1610526479876@3c-app-gmx-bs17
обсуждение исходный текст
Ответы Re: PostgreSQL replication failover
Список pgsql-admin
Hello,

we are running postgresqlserver on s390 zLinux machines. The distribution is RedHat 7 and RedHat 8, so we do not have
themany x86 tools available. 

We always run 2 instances with a replication (streaming) async mode, the replica is in hot_standby and we use it for
read-onlyaccesses. About the setup we have the following question: 

How is an orderly failover accomplished? Our current procedure is.

1. primary stop
2. promote replica to primary
3. create standby.signal on old primary
4. change primary_conninfo on old primary
5. start old primary as new replica

Is this processing correct? Are there any other steps that simplify a failover? How can we be sure that all changes
havebeen transferred from the old master to the replica? 

thanks in advance




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: I need to complex Query - need big support
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: PostgreSQL replication failover