Re: Profile what the production server is doing

Поиск
Список
Период
Сортировка
От Baron Schwartz
Тема Re: Profile what the production server is doing
Дата
Msg-id CAPXQ3QYsXxaS7TbZAY+JYVXSaKGkdg=+_i20UHCx=8wM3etmiA@mail.gmail.com
обсуждение исходный текст
Ответ на Profile what the production server is doing  (Thomas Güttler <guettliml@thomas-guettler.de>)
Ответы Re: Profile what the production server is doing  (Thomas Güttler <guettliml@thomas-guettler.de>)
Список pgsql-performance
I'm biased, but I think VividCortex (my company's product) is amazing at this.

On Mon, Jul 23, 2018 at 7:18 AM Thomas Güttler <guettliml@thomas-guettler.de> wrote:
Is there a tool which does this for PostgreSQL?

Take a "snapshot" of what the server is doing about 10 times per second.
Write this to a file.
After N hours you can aggregate the file.
What does the server do most of the time?
Which tables/index gets used the most.

Before optimizing a database, I would like to know what is going
on in the production system.

I know that there are internal tables like pg_stat_statements.
But I guess doing a snapshot every N millseconds will present a
better picture of what is going in in real life.

Is there already a tool which goes this way?

Or is there a better way?

Regards,
   Thomas Güttler

--
Thomas Guettler http://www.thomas-guettler.de/
I am looking for feedback: https://github.com/guettli/programming-guidelines

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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Profile what the production server is doing
Следующее
От: Flo Rance
Дата:
Сообщение: Re: Profile what the production server is doing