From: | Kiriakos Tsourapas <ktsour(at)gmail(dot)com> |
---|---|
To: | Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Postgres becoming slow, only full vacuum fixes it |
Date: | 2012-09-25 11:07:55 |
Message-ID: | BA0641CA-5B57-4534-AB35-00B2A16FEA4B@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Hi Mark,
When the problem appears, vacuuming is not helping. I ran vacuum manually and the problem was still there. Only full vacuum worked.
As far as I have understood, autovacuuming is NOT doing FULL vacuum. So, messing around with its values should not help me in any way.
Thanks
>
> Given that vacuum full fixes the issue I suspect you need to have autovacuum set wake up much sooner, not later. So autovacuum_naptime = 28800 or even = 60 (i.e the default) is possibly too long. We have several database here where I change this setting to 10 i.e:
>
> autovacuum_naptime = 10s
>
>
> in order to avoid massive database bloat and queries that get slower and slower...
>
> You might want to be a bit *less* aggressive with autovacuum_vacuum_scale_factor - I usually have this at 0.1, i.e:
>
> autovacuum_vacuum_scale_factor = 0.1
>
>
> otherwise you will be vacuuming all the time - which is usually not what you want (not for all your tables anyway).
>
> regards
>
> Mark
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
From | Date | Subject | |
---|---|---|---|
Next Message | Kiriakos Tsourapas | 2012-09-25 11:10:08 | Re: Postgres becoming slow, only full vacuum fixes it |
Previous Message | Kiriakos Tsourapas | 2012-09-25 11:01:10 | Re: Postgres becoming slow, only full vacuum fixes it |