Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Limiting th...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 3090 of 3323
Post > Topic >>

Re: Limiting the number of connections for one user

by andreas.kretschmer@[EMAIL PROTECTED] ("A. Kretschmer") Apr 24, 2008 at 11:28 AM

am  Thu, dem 24.04.2008, um 11:18:19 +0200 mailte Didier Gasser-Morlay
folgendes:
> Hello,
> 
> We clearly have a bug in our application: sometimes for reasons we
> have not been able to understand yet, the application will start
> creating connection like madness (several dozens in a matter of
> minutes). This eats up too quickly the number of connections we have
> available on the server and is not healthy anyway.
> 
> We have narrowed the problem down to only 2 users having had this
> issue over the past few days.
> 
> Whilst we are investigating what happens I am wondering if there are
> anyway to limit the number of connection a specific IP address can
> make to a server; this would not solve the user's issue but prevent it
> from spreading and affecting every other users.

Do you have a own user for this connection? If so, you can limit the
connections per user, see alter user <name> connection limit <limit>.

I don't know a way to set a limit per IP with postgresql, but i think,
you can do that with iptables (depending on your operating system).



Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 2 Posts in Topic:
Limiting the number of connections for one user
didiergm@[EMAIL PROTECTED  2008-04-24 11:18:19 
Re: Limiting the number of connections for one user
andreas.kretschmer@[EMAIL  2008-04-24 11:28:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 5:34:22 CST 2008.