pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Avi Weinberg <AviW@gilat.com>
To: pgsql-general@lists.postgresql.org
Subject: Notify When Streaming Replication Failover Occurred (slave promoted to master).
Date: Mon, 14 Jun 2021 08:31:23 +0900
Message-ID: <000001d760ac$38ea9ca0$aabfd5e0$@gilat.com> (raw)

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. 

view thread (5+ messages)  latest in thread

Message-ID: <000001d760ac$38ea9ca0$aabfd5e0$@gilat.com>
Permalink:  ../000001d760ac$38ea9ca0$aabfd5e0$@gilat.com/
Also on:    postgresql.org/message-id/000001d760ac$38ea9ca0$aabfd5e0$@gilat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: AviW@gilat.com
  Subject: Re: Notify When Streaming Replication Failover Occurred (slave promoted to master).
  In-Reply-To: <000001d760ac$38ea9ca0$aabfd5e0$@gilat.com>
  References: <000001d760ac$38ea9ca0$aabfd5e0$@gilat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox