Raising the checkpoint_timeout limit

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Raising the checkpoint_timeout limit
Дата
Msg-id 20160202001320.GP8743@awork2.anarazel.de
обсуждение исходный текст
Ответы Re: Raising the checkpoint_timeout limit  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Re: Raising the checkpoint_timeout limit  (Euler Taveira <euler@timbira.com.br>)
Re: Raising the checkpoint_timeout limit  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
Hi,

is there any reason for the rather arbitrary and low checkpoint_timeout
limit? Obviously it's not not appropriate to have a 10h timeout on all
that many systems. But if the reaction to a server crashing is going to
be a failover to one of several standbys anyway, setting the timeout to
a high value, can make sense.

A high timeout has the advantage that the total amount of full page
writes reduces and, especially if the whole system fits into s_b, that
the total amount of writes to disk is drastically reduced.

I'm not sure what'd actually be a good upper limit. I'd be inclined to
even go to as high as a week or so. A lot of our settings have
upper/lower limits that aren't a good idea in general.

I'm also wondering if it'd not make sense to raise the default timeout
to 15min or so. The upper ceiling for that really is recovery time, and
that has really shrunk rather drastically due to faster cpus and
architectural improvements in postgres (bgwriter, separate
checkpointer/bgwriter, restartpoints, ...).

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: "using previous checkpoint record at" maybe not the greatest idea?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Add links to commit fests to patch summary page