Re: Big number of connections - Mailing list pgsql-performance

From Andrew Dunstan
Subject Re: Big number of connections
Date
Msg-id 56FD7FBB.4040403@dunslane.net
Whole thread Raw
In response to Re: Big number of connections  (Igor Neyman <ineyman@perceptron.com>)
Responses Re: Big number of connections  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-performance

On 03/31/2016 03:12 PM, Igor Neyman wrote:
> -----Original Message-----
> From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Jarek
> Sent: Thursday, March 31, 2016 3:08 PM
> To: pgsql-performance@postgresql.org
> Subject: [PERFORM] Big number of connections
>
> Hello!
>
>     We are going to build system based on PostgreSQL database for huge number of individual users (few thousands).
Eachuser will have his own account, for authorization we will use Kerberos (MIT or Windows). 
> Most of users will have low activity, but for various reasons, connection should be open all the time.
> I'd like to know what potential problems and limitations we can expect with such deployment.
>     During preliminary testing we have found that for each connection we need ~1MB RAM. Is there any way to decrease
this? Is there any risk, that such number of users will degrade performance ? 
>     I'll be happy to hear any remarks and suggestions related to design, administration and handling of such
installation.
>
> best regards
> Jarek
>
> _______________________________________________________________________________
>
> Take a look at PgBouncer.
> It should solve your problems.
>


If they are going to keep the client connections open, they would need
to run pgbouncer in statement or transaction mode.

cheers

andrew


pgsql-performance by date:

Previous
From: Igor Neyman
Date:
Subject: Re: Big number of connections
Next
From: Alvaro Herrera
Date:
Subject: Re: Big number of connections