pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedhow reliable is pg_rewind?
5+ messages / 3 participants
[nested] [flat]
* how reliable is pg_rewind?
@ 2020-08-01 17:35 Curt Kolovson <curt@kolovson.org>
0 siblings, 1 reply; 5+ messages in thread
From: Curt Kolovson @ 2020-08-01 17:35 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
When trying to resync an old primary to become a new standby, I have found
that pg_rewind only works occasionally. How reliable/robust is pg_rewind,
and what are its limitations? We have observed that approx half our FPIs in
the WALs are due to XLOG/FPI_FOR_HINT. The only reason we've set
wal_log_hints=on is so that we can use pg_rewind. But if pg_rewind is
unreliable, we would rather turn off wal_log_hints. Any info on the
reliability of pg_rewind and its limitations would be appreciated.
Thanks, Curt
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: how reliable is pg_rewind?
@ 2020-08-03 01:58 Michael Paquier <michael@paquier.xyz>
parent: Curt Kolovson <curt@kolovson.org>
0 siblings, 1 reply; 5+ messages in thread
From: Michael Paquier @ 2020-08-03 01:58 UTC (permalink / raw)
To: Curt Kolovson <curt@kolovson.org>; +Cc: pgsql-general@lists.postgresql.org
On Sat, Aug 01, 2020 at 10:35:37AM -0700, Curt Kolovson wrote:
> When trying to resync an old primary to become a new standby, I have found
> that pg_rewind only works occasionally. How reliable/robust is pg_rewind,
> and what are its limitations? We have observed that approx half our FPIs in
> the WALs are due to XLOG/FPI_FOR_HINT. The only reason we've set
> wal_log_hints=on is so that we can use pg_rewind. But if pg_rewind is
> unreliable, we would rather turn off wal_log_hints. Any info on the
> reliability of pg_rewind and its limitations would be appreciated.
FWIW, we use it in production to accelerate the redeployment of
standbys in HA configuration for 4 years now in at least one product,
and it is present in upstream for since 9.5, for 5 years now. So the
tool is rather baked at this stage of the game.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: how reliable is pg_rewind?
@ 2020-08-03 05:29 Paul Förster <paul.foerster@gmail.com>
parent: Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 5+ messages in thread
From: Paul Förster @ 2020-08-03 05:29 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Curt Kolovson <curt@kolovson.org>; pgsql-general@lists.postgresql.org
Hi Curt, hi Michael,
> On 03. Aug, 2020, at 03:58, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Sat, Aug 01, 2020 at 10:35:37AM -0700, Curt Kolovson wrote:
>> Any info on the reliability of pg_rewind and its limitations would be appreciated.
>
> FWIW, we use it in production to accelerate the redeployment of
> standbys in HA configuration for 4 years now in at least one product,
> and it is present in upstream for since 9.5, for 5 years now. So the
> tool is rather baked at this stage of the game.
same here. We use it with Patroni in failover cluster setups for about 2-3 years now. It has not failed us yet.
Cheers,
Paul
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: how reliable is pg_rewind?
@ 2020-08-03 06:25 Curt Kolovson <curt@kolovson.org>
parent: Paul Förster <paul.foerster@gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Curt Kolovson @ 2020-08-03 06:25 UTC (permalink / raw)
To: Paul Förster <paul.foerster@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; pgsql-general@lists.postgresql.org
Thanks, Paul and Michael. I forgot to mention that we're using postgres
v10.12.
On Sun, Aug 2, 2020 at 10:29 PM Paul Förster <paul.foerster@gmail.com>
wrote:
> Hi Curt, hi Michael,
>
> > On 03. Aug, 2020, at 03:58, Michael Paquier <michael@paquier.xyz> wrote:
> >
> > On Sat, Aug 01, 2020 at 10:35:37AM -0700, Curt Kolovson wrote:
> >> Any info on the reliability of pg_rewind and its limitations would be
> appreciated.
> >
> > FWIW, we use it in production to accelerate the redeployment of
> > standbys in HA configuration for 4 years now in at least one product,
> > and it is present in upstream for since 9.5, for 5 years now. So the
> > tool is rather baked at this stage of the game.
>
> same here. We use it with Patroni in failover cluster setups for about 2-3
> years now. It has not failed us yet.
>
> Cheers,
> Paul
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: how reliable is pg_rewind?
@ 2020-08-03 06:44 Paul Förster <paul.foerster@gmail.com>
parent: Curt Kolovson <curt@kolovson.org>
0 siblings, 0 replies; 5+ messages in thread
From: Paul Förster @ 2020-08-03 06:44 UTC (permalink / raw)
To: Curt Kolovson <curt@kolovson.org>; +Cc: Michael Paquier <michael@paquier.xyz>; pgsql-general@lists.postgresql.org
Hi Curt,
> On 03. Aug, 2020, at 08:25, Curt Kolovson <curt@kolovson.org> wrote:
> Thanks, Paul and Michael. I forgot to mention that we're using postgres v10.12.
11.6 and 12.3 here.
Also, please don't top-post, thanks.
Cheers,
Paul
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2020-08-03 06:44 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 17:35 how reliable is pg_rewind? Curt Kolovson <curt@kolovson.org>
2020-08-03 01:58 ` Michael Paquier <michael@paquier.xyz>
2020-08-03 05:29 ` Paul Förster <paul.foerster@gmail.com>
2020-08-03 06:25 ` Curt Kolovson <curt@kolovson.org>
2020-08-03 06:44 ` Paul Förster <paul.foerster@gmail.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