Notify When Streaming Replication Failover Occurred (slave promoted to master).

Поиск
Список
Период
Сортировка
От Avi Weinberg
Тема Notify When Streaming Replication Failover Occurred (slave promoted to master).
Дата
Msg-id 000001d760ac$38ea9ca0$aabfd5e0$@gilat.com
обсуждение исходный текст
Ответы Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).  (Dave Cramer <davecramer@postgres.rocks>)
Список pgsql-general

I need to take actions when Postgres streaming replication failover occurred.  Is there a way to be notified when Postgres slave becomes master?  If no such notification possible, what is the best way to actively monitor which server is master.  My Postgres  is running inside Kubernetes and the HA is managed by Patroni.

 

Thanks!

IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you should not copy or use this e-mail for any purpose nor disclose its contents to any person.

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

Предыдущее
От: "Peter J. Holzer"
Дата:
Сообщение: Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).