pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Sonam Sharma <sonams1209@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Automatic failover
Date: Wed, 18 Mar 2020 11:08:53 +0900
Message-ID: <0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com> (raw)
In-Reply-To: <CAM-M3TkeybAXc9SuiEerbmm1y_fu-zrA=xD8Z8=QGJiCY-fqTA@mail.gmail.com>
References: <CAM-M3TkeybAXc9SuiEerbmm1y_fu-zrA=xD8Z8=QGJiCY-fqTA@mail.gmail.com>

On 2020/03/17 19:30, Sonam Sharma wrote:
 > I have setup replication using repmgr. Wanted to know how much time
 > the slave node will take to become new primary ?? If any document,
 > can someone please share of auto failover.  With automatic failover,
 > how much time the slave takes to become new primary .

It's impossible to give a generic answer to this.

Firstly, there will be the interval between the primary failing and whatever
failover system you are using deciding to make a failover decision. This will
be configurable, and will always be a trade-off between speed and certainty.
Secondly it will depend on what work the standby needs to do before it completes
the promotion process. Typically the standby will promote very quickly, but e.g.
if it has a bunch of WAL to replay first, the process will take longer.


Regards

Ian Barwick


-- 
Ian Barwick                   https://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services





view thread (4+ messages)

Message-ID: <0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com>
Permalink:  ../0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com/
Also on:    postgresql.org/message-id/0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.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: ian.barwick@2ndquadrant.com, sonams1209@gmail.com
  Subject: Re: Automatic failover
  In-Reply-To: <0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com>
  References: <CAM-M3TkeybAXc9SuiEerbmm1y_fu-zrA=xD8Z8=QGJiCY-fqTA@mail.gmail.com> <0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.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