From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Jason Ralph <jralph@affinitysolutions.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Are my autovacuum settings too aggressive for this table?
Date: Mon, 04 Nov 2019 05:43:58 +0100
Message-ID: <1c8b7029f866d26516e32dd5843c0f4a807638d1.camel@cybertec.at> (raw)
In-Reply-To: <BL0PR04MB649986CB42C2FDA18F449F14D0620@BL0PR04MB6499.namprd04.prod.outlook.com>
References: <BL0PR04MB649986CB42C2FDA18F449F14D0620@BL0PR04MB6499.namprd04.prod.outlook.com>
On Fri, 2019-11-01 at 18:58 +0000, Jason Ralph wrote:
> autovacuum_naptime = 1h
> autovacuum_vacuum_threshold = 10000
> autovacuum_analyze_threshold = 5000
> autovacuum_vacuum_scale_factor = 0.002
> autovacuum_analyze_scale_factor = 0.001
These seem to be crazy settings.
Only once an hour you test if a table needs autovacuum, and then you
configure autovacuum to process tables all the time.
There are only three autovacuum workers, so most of the tables won't
get vacuumed.
Please reset all these values to their default.
If you want autovacuum to be more aggressive for a single table, run
ALTER TABLE x SET (autovacuum_vacuum_cost_delay = 2);
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, jralph@affinitysolutions.com
Subject: Re: Are my autovacuum settings too aggressive for this table?
In-Reply-To: <1c8b7029f866d26516e32dd5843c0f4a807638d1.camel@cybertec.at>
References: <BL0PR04MB649986CB42C2FDA18F449F14D0620@BL0PR04MB6499.namprd04.prod.outlook.com> <1c8b7029f866d26516e32dd5843c0f4a807638d1.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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