pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedAutomatic Failover
4+ messages / 4 participants
[nested] [flat]
* Automatic Failover
@ 2015-06-02 14:14 Ivann Ruiz <ivann.jprog@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Ivann Ruiz @ 2015-06-02 14:14 UTC (permalink / raw)
To: pgsql-general
Hello everyone,
I know most of you guys have plenty of experience with PostgreSQL, do any
of you know a tool for windows that allows me to create an automatic
failover system? I'm running Windows servers 2008 and 2012 and PostgreSQL
9.4.
Thanks in advance for your time!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Automatic failover
@ 2020-03-17 10:30 Sonam Sharma <sonams1209@gmail.com>
0 siblings, 2 replies; 4+ messages in thread
From: Sonam Sharma @ 2020-03-17 10:30 UTC (permalink / raw)
To: pgsql-general
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 .
Thanks..
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Automatic failover
@ 2020-03-17 10:37 Paul Foerster <paul.foerster@gmail.com>
parent: Sonam Sharma <sonams1209@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Paul Foerster @ 2020-03-17 10:37 UTC (permalink / raw)
To: Sonam Sharma <sonams1209@gmail.com>; +Cc: pgsql-general
Hi Sonam,
On Tue, Mar 17, 2020 at 11:30 AM Sonam Sharma <sonams1209@gmail.com> 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 .
> Thanks..
I don't know about repmgr. We use Patroni with etcd. A switchover
takes only a second or two with that. And the (new) replica is usually
in sync again in less than about 5 seconds or so.
Cheers,
Paul
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Automatic failover
@ 2020-03-18 02:08 Ian Barwick <ian.barwick@2ndquadrant.com>
parent: Sonam Sharma <sonams1209@gmail.com>
1 sibling, 0 replies; 4+ messages in thread
From: Ian Barwick @ 2020-03-18 02:08 UTC (permalink / raw)
To: Sonam Sharma <sonams1209@gmail.com>; 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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2020-03-18 02:08 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 14:14 Automatic Failover Ivann Ruiz <ivann.jprog@gmail.com>
2020-03-17 10:30 Automatic failover Sonam Sharma <sonams1209@gmail.com>
2020-03-17 10:37 ` Re: Automatic failover Paul Foerster <paul.foerster@gmail.com>
2020-03-18 02:08 ` Re: Automatic failover Ian Barwick <ian.barwick@2ndquadrant.com>
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