public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Siraj G <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: Out of Memory error triggering replica to transition into recovery mode
Date: Thu, 28 Nov 2024 11:31:22 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAC5iy61uGHGfLpR2Wded8ZniyKqREeDBdeJ4ryXZ5jwU6-oKyg@mail.gmail.com>
References: <CAC5iy61uGHGfLpR2Wded8ZniyKqREeDBdeJ4ryXZ5jwU6-oKyg@mail.gmail.com>
Siraj G <[email protected]> writes:
> As the subject says, today very frequently our replica DB is going into the
> recovery mode causing an outage in the application side.
If you're not on this month's minor releases, perhaps you should be:
Reduce memory consumption of logical decoding (Masahiko Sawada)
Use a smaller default block size to store tuple data received
during logical replication. This reduces memory wastage, which
has been reported to be severe while processing long-running
transactions, even leading to out-of-memory failures.
I recall past updates that fixed other memory leaks in logical
replication, too.
> Pgsql: 12.2
Egad. Your version-updating strategy seriously needs a rethink.
regards, tom lane
view thread (2+ messages)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Out of Memory error triggering replica to transition into recovery mode
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox