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

From: Avi Weinberg <AviW(at)gilat(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Notify When Streaming Replication Failover Occurred (slave promoted to master).
Date: 2021-06-13 08:00:24
Message-ID: DB9PR07MB7180CCBBE7BA7C900B583596CB329@DB9PR07MB7180.eurprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2021-06-13 15:51:21 Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).
Previous Message Peter J. Holzer 2021-06-12 23:24:26 Re: index unique