Re: Automatic failover

From: Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)com>
To: Sonam Sharma <sonams1209(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Automatic failover
Date: 2020-03-18 02:08:53
Message-ID: 0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2020-03-18 02:25:25 Re: Mixed Locales and Upgrading
Previous Message Andres Freund 2020-03-18 01:19:52 Re: PG12 autovac issues