Re: Postgres becoming slow, only full vacuum fixes it

Поиск
Список
Период
Сортировка
От Kiriakos Tsourapas
Тема Re: Postgres becoming slow, only full vacuum fixes it
Дата
Msg-id 9A216936-27A3-4EF6-9CA3-186B1A46905B@gmail.com
обсуждение исходный текст
Ответ на Re: Postgres becoming slow, only full vacuum fixes it  (Ondrej Ivanič <ondrej.ivanic@gmail.com>)
Список pgsql-performance
Dear all,

I am taking your suggestions one step at a time.

I changed my configuration to a much more aggressive autovacuum policy (0.5% for analyzing and 1% for autovacuum).

autovacuum_naptime = 1min
autovacuum_vacuum_threshold = 50
#autovacuum_analyze_threshold = 50
autovacuum_vacuum_scale_factor = 0.01
autovacuum_analyze_scale_factor = 0.005

I had tables with 180.000 record and another with 2M records, so the default values of 0.2 for autovacuum would mean
that18.000 and 200K records would have to change respectively, delaying the vacuum for many days. 

I will monitor for the next 2-3 days and post back the results.


Thank you all for your suggestions so far.
Kiriakos



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

Предыдущее
От: Ondrej Ivanič
Дата:
Сообщение: Re: Postgres becoming slow, only full vacuum fixes it
Следующее
От: FFW_Rude
Дата:
Сообщение: Same query doing slow then quick