Re: PostgreSQL Configuration Tool for Dummies

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: PostgreSQL Configuration Tool for Dummies
Дата
Msg-id Pine.GSO.4.64.0706261401240.6715@westnet.com
обсуждение исходный текст
Ответ на Re: PostgreSQL Configuration Tool for Dummies  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: PostgreSQL Configuration Tool for Dummies  (Josh Berkus <josh@agliodbs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Steven Flatt"
Дата:
Сообщение: Re: Database-wide VACUUM ANALYZE
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Database-wide VACUUM ANALYZE