Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9V6N-0000sz-Ag for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 11:53:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9V6M-0005eb-Nh for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 11:53:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9V6M-0005eJ-8g for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 11:53:02 +0000 Received: from host3.dynacom.ondsl.gr ([62.103.35.211] helo=smadev.internal.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9V6H-0003nn-Rh for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 11:53:01 +0000 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id v9VBq6Cq036343; Tue, 31 Oct 2017 13:52:06 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Could pgsql jdbc support pool reauthentication? To: Dave Cramer Cc: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= , Vladimir Sitnikov , List References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com> <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> From: Achilleas Mantzios Message-ID: <34c91785-44d8-e202-ad6a-c22c3e69e986@matrix.gatewaynet.com> Date: Tue, 31 Oct 2017 13:52:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------8791D04D10FFD9D72878ED42" Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multi-part message in MIME format. --------------8791D04D10FFD9D72878ED42 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 31/10/2017 13:08, Dave Cramer wrote: > Pivotal has a branch of pgbouncer that supports LDAP. Great news Dave, thanx, you mean this repo right ? : https://github.com/greenplum-db/pgbouncer > > Dave Cramer > > davec@postgresintl.com > www.postgresintl.com > > On 31 October 2017 at 07:00, Achilleas Mantzios > wrote: > > On 31/10/2017 12:56, Álvaro Hernández Tortosa wrote: > > > > 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. > > That would be a blessing if pgbouncer supported LDAP . > > > >     Álvaro > > > -- > Achilleas Mantzios > IT DEV Lead > IT DEPT > Dynacom Tankers Mgmt > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------8791D04D10FFD9D72878ED42 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 31/10/2017 13:08, Dave Cramer wrote:
Pivotal has a branch of pgbouncer that supports LDAP.
Great news Dave, thanx, you mean this repo right ? :  https://github.com/greenplum-db/pgbouncer


On 31 October 2017 at 07:00, Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
On 31/10/2017 12:56, Álvaro Hernández Tortosa wrote:


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.
That would be a blessing if pgbouncer supported LDAP .


    Álvaro


--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt



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


-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------8791D04D10FFD9D72878ED42--