Re: AutoVacuum_NapTime

Lists: pgsql-performance
From: "George Sexton" <georges(at)mhsoftware(dot)com>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: AutoVacuum_NapTime
Date: 2010-02-21 01:03:19
Message-ID: 053401cab291$a8cf7250$fa6e56f0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

I have a system with around 330 databases running PostgreSQL 8.4.2

What would the expected behavior be with AutoVacuum_NapTime set to the
default of 1m and autovacuum_workers set to 3?

What I'm observing is that the system is continuously vacuuming databases.
Would these settings mean the autovacuum worker would try to vacuum all 330
databases once per minute?

George Sexton


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "George Sexton" <georges(at)mhsoftware(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: AutoVacuum_NapTime
Date: 2010-02-21 01:15:20
Message-ID: 25691.1266714920@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

"George Sexton" <georges(at)mhsoftware(dot)com> writes:
> I have a system with around 330 databases running PostgreSQL 8.4.2
> What would the expected behavior be with AutoVacuum_NapTime set to the
> default of 1m and autovacuum_workers set to 3?

autovacuum_naptime is the cycle time for any one database, so you'd
get an autovac worker launched every 60/330 seconds ...

regards, tom lane


From: "George Sexton" <georges(at)mhsoftware(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: AutoVacuum_NapTime
Date: 2010-02-21 01:29:51
Message-ID: 053801cab295$5df355e0$19da01a0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Saturday, February 20, 2010 6:15 PM
> To: George Sexton
> Cc: pgsql-performance(at)postgresql(dot)org
> Subject: Re: [PERFORM] AutoVacuum_NapTime
>
> "George Sexton" <georges(at)mhsoftware(dot)com> writes:
> > I have a system with around 330 databases running PostgreSQL 8.4.2
> > What would the expected behavior be with AutoVacuum_NapTime set to
> the
> > default of 1m and autovacuum_workers set to 3?
>
> autovacuum_naptime is the cycle time for any one database, so you'd
> get an autovac worker launched every 60/330 seconds ...
>
> regards, tom lane

Thanks. That's non-optimal for my usage. I'll change it.

Another question then. Say I set it to 720 minutes, which if I understand
things would see each db done twice per day.

If I'm cold starting the system, would it vacuum all 330 databases and then
wait 720 minutes and then do them all again, or would it distribute the
databases more or less evenly over the time period?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: George Sexton <georges(at)mhsoftware(dot)com>
Cc: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org
Subject: Re: AutoVacuum_NapTime
Date: 2010-02-22 12:43:45
Message-ID: 20100222124344.GA4629@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

George Sexton wrote:

> If I'm cold starting the system, would it vacuum all 330 databases and then
> wait 720 minutes and then do them all again, or would it distribute the
> databases more or less evenly over the time period?

the latter

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.