Re: Unexpected disk space growth controlling measures

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Unexpected disk space growth controlling measures
Дата
Msg-id AANLkTin6oBtd9gS79mRmNiW7iVa7Hfv63UYvXWvYTUWr@mail.gmail.com
обсуждение исходный текст
Ответ на Unexpected disk space growth controlling measures  ("Gnanakumar" <gnanam@zoniac.com>)
Ответы Re: Unexpected disk space growth controlling measures  ("Gnanakumar" <gnanam@zoniac.com>)
Список pgsql-admin
On Fri, Jul 30, 2010 at 11:18 PM, Gnanakumar <gnanam@zoniac.com> wrote:
> Hi,
>
> What are all the controlling factors/measures that one should consider/take
> into account, when there is an unexpected growth in disk space usage of the
> database?
>
> Some of the factors that comes to my mind immediately are:
> 1) Running autovacuum daemon aggressively
> 2) Setting/tuning appropriate value for the parameters "max_fsm_pages" and
> "max_fsm_relations"

Those are both good steps.  Note that they won't reduce bloat, just prevent it.

> Is there any other factors that I need to consider apart from the above?

Look into monitoring your database for bloat etc.  Esp in 8.3 and
before where blowing out the free space map is quite easy to do and it
can go unnoticed for some time.  A first simple step is to email
yourself the output of vacuum verbose every night to make sure you
haven't outrun fsm.  Also, fsm is pretty cheap.  Where I work we use
about 2.5M entries but have our fsm set to 10M so we don't have to
worry about blowing it out overnight or anything.

Lastly, make sure your IO subsystem can keep up.  If you're on the
hairy edge, then vacuum may never be able to keep up.

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

Предыдущее
От: "Gnanakumar"
Дата:
Сообщение: Unexpected disk space growth controlling measures
Следующее
От: "Gnanakumar"
Дата:
Сообщение: Re: Unexpected disk space growth controlling measures