Re: How to track number of connections and hosts to Postgres cluster
В списке pgsql-performance по дате отправления:
| От | Guillaume Lelarge |
|---|---|
| Тема | Re: How to track number of connections and hosts to Postgres cluster |
| Дата | |
| Msg-id | 1314188217.2193.18.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: How to track number of connections and hosts to Postgres cluster (Venkat Balaji <venkat.balaji@verse.in>) |
| Список | pgsql-performance |
On Wed, 2011-08-24 at 16:51 +0530, Venkat Balaji wrote: > But, the information vanishes if the application logs off. > That's why you need a tool to track this. > I am looking for an alternative to track the total amount of the connections > with the host IPs through a Cron job. > If you only want the number of connections, you can check_postgres. > What could be the frequency of cron ? > I don't think you can go below one second. > I know the best is using log_connections and log_disconnections parameters, > but, information logged would be too high and is also IO intensive. > Sure. But if you want connection duration, that's the only way. -- Guillaume http://blog.guillaume.lelarge.info http://www.dalibo.com
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера