limiting number of connections from specific host or by user

From: Kenji Morishige <kenjim(at)juniper(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Cc: kenjim(at)juniper(dot)net
Subject: limiting number of connections from specific host or by user
Date: 2006-05-10 19:06:46
Message-ID: 20060510190646.GA12986@juniper.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message mcelroy, tim 2006-05-10 19:11:16 Re: backups
Previous Message Simon Riggs 2006-05-10 18:52:27 Re: Logging long queries: not all get logged