From: Kenji Morishige <kenjim@juniper.net>
To: pgsql-admin@postgresql.org
Cc: kenjim@juniper.net
Subject: limiting number of connections from specific host or by user
Date: Wed, 10 May 2006 12:06:46 -0700
Message-ID: <20060510190646.GA12986@juniper.net> (raw)
We are having a problem where we are running out of connections due to a
in-house tool that creates abnormal amount of connections due to fluctuating
loads that we cannot control. Ideally, the tool could be re-written to take
into account for those situations, but due to its complexity we don't have the
time to do so. I am trying to come up with a solution to block incoming
connections when they reach a certain hard limit. Is there any way from
PostgreSQL user authentication or other methods to cap connection count by user
or by host? I had considered creating a firewall rule after detecting a certain
amount of established connection from a particular host, but this seems very
inflexible as well. Any ideas or suggestions appreciated.
Sincerely,
Kenji
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kenjim@juniper.net
Subject: Re: limiting number of connections from specific host or by user
In-Reply-To: <20060510190646.GA12986@juniper.net>
References: <20060510190646.GA12986@juniper.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox