Re: High-water Mark for number of sessions/connections reached in Postgres

From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: "Tomeh, Husam" <HTomeh(at)corelogic(dot)com>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: High-water Mark for number of sessions/connections reached in Postgres
Date: 2010-08-10 00:56:18
Message-ID: AANLkTi=JfdCOd9O_xy8YH1dAKcYf3vS4_msyMKAS9R8a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Aug 9, 2010 at 5:33 PM, Tomeh, Husam <HTomeh(at)corelogic(dot)com> wrote:
> This is useful from a capacity perspective where that can be monitored to alert DBAs when a threshold is reached.

If alerting based on connection counts is your concern, you might get
some benefit from the Bucardo project's check_postgres.pl script. One
of the tests it performs is a backend count. It works with any
monitoring package that speaks NRPE, so you can issue alerts based on
either a percentage of your max_connections setting, or on the actual
backend count, as indicated by the arguments with which it's invoked.

It would also be fairly straightforward to store whatever value the
test returns in a db table, log file, Cacti/other RRD-based tools, or
whatever else strikes your fancy, for historical and trending
analysis.

<http://bucardo.org/check_postgres/>

rls

--
:wq

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-08-10 13:44:20 Re: How to move a database from HP server to Linux Server that had already one database.
Previous Message Bruce Momjian 2010-08-10 00:14:49 Re: How to move a database from HP server to Linux Server that had already one database.