Re: should we enable log_checkpoints out of the box?

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: should we enable log_checkpoints out of the box?
Дата
Msg-id CA+TgmoY6as3+oxDTUFEOwC6fY0iSrXBDkczF3unOu2+W0KPQwA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: should we enable log_checkpoints out of the box?  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
Ответы Re: should we enable log_checkpoints out of the box?  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
Re: should we enable log_checkpoints out of the box?  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Tue, Nov 2, 2021 at 2:39 PM Nikolay Samokhvalov
<samokhvalov@gmail.com> wrote:
> +1 for  log_checkpoints = on
> and +1 for log_autovacuum_min_duration = 1m or so.

I almost proposed 1m rather than 10m, but then I thought the better of
it. I think it's unlikely that an autovacuum that takes 1 minute is
really the cause of some big problem you're having on your system.
Typical problem cases I see are hours or days long, so even 10 minutes
is pretty short. compared to what's likely to cause you real issues.
And at the same time 10 minutes is also high enough that you won't get
frequent log messages. 1 minute might not be: with 3 autovacuum
workers by default, that could print out a message every 20 seconds,
which does not feel worthwhile. I think a 10 minute threshold is much
more likely to only capture events that you actually care about.

Now I do think that a lot of people would benefit from a lower setting
than 10 minutes, just to get more information about what's happening.
But IMHO, making the default as low as 1 minute is a bit much.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: should we enable log_checkpoints out of the box?
Следующее
От: Nikolay Samokhvalov
Дата:
Сообщение: Re: should we enable log_checkpoints out of the box?