Re: PostgreSQL Configuration Tool for Dummies - Mailing list pgsql-performance

From Greg Smith
Subject Re: PostgreSQL Configuration Tool for Dummies
Date
Msg-id Pine.GSO.4.64.0706261401240.6715@westnet.com
Whole thread Raw
In response to Re: PostgreSQL Configuration Tool for Dummies  (Josh Berkus <josh@agliodbs.com>)
Responses Re: PostgreSQL Configuration Tool for Dummies
List pgsql-performance
On Tue, 26 Jun 2007, Josh Berkus wrote:

> The problem is that there are no "safe, middle-of-the-road" values for some
> things, particularly max_connections and work_mem.

Your max_connections concern is one fact that haunts the idea of just
giving out some sample configs for people.  Lance's tool asks outright the
expectation for max_connections which I think is the right thing to do.

> Web app, typical machine:
> work_mem = 256kb
> default_statistics_target=100
> autovacuum=on

> Reporting app, same machine:
> work_mem = 32mb
> default_statistics_target=500
> autovacuum=off

I think people are stuck with actually learning a bit about work_mem
whether they like it or not, because it's important to make it larger but
we know going too high will be a problem with lots of connections doing
sorts.

As for turning autovacuum on/off and the stats target, I'd expect useful
defaults for those would come out of how the current sample is asking
about read vs. write workloads and expected database size.  Those simple
to understand questions might capture enough of the difference between
your two types here.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-performance by date:

Previous
From: "Steven Flatt"
Date:
Subject: Re: Database-wide VACUUM ANALYZE
Next
From: Alvaro Herrera
Date:
Subject: Re: Database-wide VACUUM ANALYZE