| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Don Seiler <don(at)seiler(dot)us> |
| Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Use of max_slot_wal_keep_size parameter |
| Date: | 2024-03-26 14:29:21 |
| Message-ID: | 2821429.1711463361@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Don Seiler <don(at)seiler(dot)us> writes:
> On Tue, Mar 26, 2024 at 9:09 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> ... So you could overshoot the specified target by
>> more or less the amount of WAL that could be emitted between two
>> checkpoints. Perhaps it's tighter nowadays, but I really doubt that
>> it's exact-to-the-kilobyte-at-all-times.
> In this case, the total volume size was 60GB and we had the parameter set
> to 58GB but I imagine that can still be overwhelmed quickly. Maybe we
> should target a 20% buffer zone? We have wal_keep_size defaulted at 0.
Can you measure your WAL emission rate? What you want I think is some
small multiple of the max amount of WAL emitted between checkpoints.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2024-03-26 14:43:19 | Re: Active sessions does not terminated due to statement_timeout |
| Previous Message | Ц | 2024-03-26 14:19:14 | Active sessions does not terminated due to statement_timeout |