pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedstandby stop replicating, then picked back up
4+ messages / 3 participants
[nested] [flat]
* standby stop replicating, then picked back up
@ 2017-11-07 20:04 chris kim <chrisk@propaas.com>
0 siblings, 1 reply; 4+ messages in thread
From: chris kim @ 2017-11-07 20:04 UTC (permalink / raw)
To: pgsql-in-general@postgresql.org <pgsql-in-general@postgresql.org>
Hello,
I had a standby hang for a while, not replicating, but then it fixed
itself but I'm not sure why it happened in the first place. What would I
look into to see why this happened, or any insight into why is greatly
appreciated.
Thanks,
Chris
--
Sent via pgsql-in-general mailing list (pgsql-in-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-in-general
^ permalink raw reply [nested|flat] 4+ messages in thread
* Fwd: standby stop replicating, then picked back up
@ 2017-11-07 20:08 chris kim <chrisk@propaas.com>
parent: chris kim <chrisk@propaas.com>
0 siblings, 1 reply; 4+ messages in thread
From: chris kim @ 2017-11-07 20:08 UTC (permalink / raw)
To: pgsql-general
-------- Forwarded Message --------
Subject: standby stop replicating, then picked back up
Date: Tue, 7 Nov 2017 13:04:18 -0700
From: chris kim <chrisk@propaas.com>
To: pgsql-in-general@postgresql.org <pgsql-in-general@postgresql.org>
Hello,
I had a standby hang for a while, not replicating, but then it fixed
itself but I'm not sure why it happened in the first place. What would I
look into to see why this happened, or any insight into why is greatly
appreciated.
Thanks,
Chris
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Fwd: standby stop replicating, then picked back up
@ 2017-11-07 20:17 Laurenz Albe <laurenz.albe@cybertec.at>
parent: chris kim <chrisk@propaas.com>
0 siblings, 1 reply; 4+ messages in thread
From: Laurenz Albe @ 2017-11-07 20:17 UTC (permalink / raw)
To: chris kim <chrisk@propaas.com>; pgsql-general
chris kim wrote:
> I had a standby hang for a while, not replicating, but then it fixed
> itself but I'm not sure why it happened in the first place. What would I
> look into to see why this happened, or any insight into why is greatly
> appreciated.
You give us precious little information.
If there is nothing suspicious in the log, and hot standby is enabled,
and the standby is configured appropriately, it could be that a conflicting
query on the standby block WAL application for a while.
Yours,
Laurenz Albe
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Fwd: standby stop replicating, then picked back up
@ 2017-11-08 00:32 Michael Paquier <michael.paquier@gmail.com>
parent: Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 4+ messages in thread
From: Michael Paquier @ 2017-11-08 00:32 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: chris kim <chrisk@propaas.com>; pgsql-general
On Wed, Nov 8, 2017 at 5:17 AM, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> chris kim wrote:
>> I had a standby hang for a while, not replicating, but then it fixed
>> itself but I'm not sure why it happened in the first place. What would I
>> look into to see why this happened, or any insight into why is greatly
>> appreciated.
>
> You give us precious little information.
>
> If there is nothing suspicious in the log, and hot standby is enabled,
> and the standby is configured appropriately, it could be that a conflicting
> query on the standby block WAL application for a while.
I am understanding here the following: if a standby is stopped for a
long time, would it be able to catch up automatically? This is mainly
a matter of WAL segments recycled on the primary (or a standby for
cascading streaming). In short, when the primary completes two
checkpoints, it recycles or renames past WAL segments in pg_xlog that
it does not need for recovery because it is able to recover to a
consistent state.
If the standby uses a replication slot for recovery, then you could
allow a standby to plug in back as long as the primary's pg_xlog does
not get bloated too much, at which point the partition where pg_xlog
is located would cause the primary to go down because of space
exhaustion. Using a WAL archive can be worthy if standbys are taken
down for a long time though, with a proper recovery command, or a WAL
segment range copy, you could allow a standby to recover from an
earlier point. Strategies to adopt mainly depend on if taking a full
backup is more costly than a range of WAL segments, so the data folder
size of the primary instance matters as a decision-making parameter.
--
Michael
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2017-11-08 00:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 20:04 standby stop replicating, then picked back up chris kim <chrisk@propaas.com>
2017-11-07 20:08 ` chris kim <chrisk@propaas.com>
2017-11-07 20:17 ` Laurenz Albe <laurenz.albe@cybertec.at>
2017-11-08 00:32 ` Michael Paquier <michael.paquier@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