pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Hernández Tortosa <aht@8kdata.com>
To: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Could pgsql jdbc support pool reauthentication?
Date: Tue, 31 Oct 2017 11:56:30 +0100
Message-ID: <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> (raw)
In-Reply-To: <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com>
References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com>
	<CAB=Je-Ge3LdLJMwsz0+GeT9T1KL0wXymUX206Y22K8+iYpsnWw@mail.gmail.com>
	<09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>



On 31/10/17 10:08, Achilleas Mantzios wrote:
> Hello Vladimir, thanx
>
> On 31/10/2017 10:30, Vladimir Sitnikov wrote:
>> Achilleas>So if say we need 5 connections max for the most complex 
>> app to work, and we have 200 users, then at peak time, the total 
>> number of connections would have to be raised to 1000.
>>
>> Pools can shrink, so you do not have to raise total number of 
>> connections to 1000 unless you truly expect 1000 concurrent connections.
> I know, but we still risk having our max_connections exceeded. And 
> this is not scaleable.

     That's true, but if you have a pgbouncer in front of PostgreSQL 
(you should) and the connections are used wisely (i.e. they are returned 
as soon as they finish the job, they don't sit idle) this is no longer a 
problem.


     Álvaro

-- 

Álvaro Hernández Tortosa


-----------
<8K>data



-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (16+ messages)  latest in thread

Message-ID: <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com>
Permalink:  ../0725142a-6924-56dc-5dd2-525e98669894@8kdata.com/
Also on:    postgresql.org/message-id/0725142a-6924-56dc-5dd2-525e98669894@8kdata.com

 · 

reply

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-jdbc@postgresql.org
  Cc: aht@8kdata.com, achill@matrix.gatewaynet.com, sitnikov.vladimir@gmail.com
  Subject: Re: Could pgsql jdbc support pool reauthentication?
  In-Reply-To: <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com>
  References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com> <CAB=Je-Ge3LdLJMwsz0+GeT9T1KL0wXymUX206Y22K8+iYpsnWw@mail.gmail.com> <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com>

* 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