Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9UDn-0006H8-NJ for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 10:56:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9UDn-0004jS-8U for pgsql-jdbc@arkaria.postgresql.org; Tue, 31 Oct 2017 10:56:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9UDm-0004jI-MJ for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 10:56:38 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e9UDi-0000yx-P9 for pgsql-jdbc@postgresql.org; Tue, 31 Oct 2017 10:56:37 +0000 Received: by mail-wm0-x242.google.com with SMTP id m72so21627318wmc.1 for ; Tue, 31 Oct 2017 03:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=zRZuITtDC5z7jAezztLKKrS8qORMuN5DE71CUctxRCY=; b=SGCO0IsONE3dVOnlYXzlvtytndJ635xovXYuI49qrxbjZkk9VT5KMFg7zDwCE+wUFa iA/TouyG/OyKUiQ90H0/hqLmNxU/NbKCDODWljaR+J3u6HYlXPCT6hZYy9aT1l+64T3/ 4lx1zKcjFLX/kg8NuZrXvxl5MYek0FgTM+G4FM4qByKUMDLe3179Z85pkU0wIr1v/yQ2 TNwSY07Mhbnq0s/X+cxe3/vCef8ILsmJx20W35wQ3zL1O4kuAOIgD0p3ncLgRTnuhW+i vkIXBkBRKsqz6TbRDczYBVPWmXnnQU+rzRm+qlYV0GVB9drRV/1jshsc15Uq/+2e5L4d Nq3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=zRZuITtDC5z7jAezztLKKrS8qORMuN5DE71CUctxRCY=; b=OIFIfywyfZcP/xJn36gmSn4AC0xAjmqKZufgY3R/lEJfd4b/DFzZ1mrmANcpVIscmn eg9CuKgLlY5lOitTml6C1TevXP4kuWf1SvTCQqTpDFGwO6r97P1d7BVPyclJYqe83upZ 7eZznTEDgjc2GFaP6IyJv1+vT+IKUW/TV0pIgBdvAVLpZwUUl1Ur2tOnWeX+3KP7m3RL ncDvarGq2XwJzJrie+WVOzUK6T8pVhelS0IuPjN3xhCzNDJKlTepxBuOJszwYOyCKxGS Qurhsf2/XoCI54dfbcrbDGQ5CXZZOlrXoTSNI/zDr7iNEMgxFJOUxR32Qn+UckEAGzWC tJtg== X-Gm-Message-State: AMCzsaX1SsK73N+9erkjQ41E5HrWAnGbbPlky+/Cs0c1vr+KS+ObdG+y PbO2PHgA3qnzsKTt9IJv8B0cSCO0iiU= X-Google-Smtp-Source: ABhQp+SoTTTwXsCInEzT0xSwaYVny2olew7N4n6HpzrM5GERv+OXsTrpj0DqNF2N2J8iKu8BVCOUuQ== X-Received: by 10.80.220.12 with SMTP id q12mr2366213edk.219.1509447392682; Tue, 31 Oct 2017 03:56:32 -0700 (PDT) Received: from [192.168.0.160] (din-21-243-231-77.ipcom.comunitel.net. [77.231.243.21]) by smtp.gmail.com with ESMTPSA id o64sm1015425edb.14.2017.10.31.03.56.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 03:56:31 -0700 (PDT) Subject: Re: Could pgsql jdbc support pool reauthentication? To: Achilleas Mantzios , Vladimir Sitnikov Cc: List References: <74d59bcf-cc4f-3a61-cf0a-8ab3ed5ca9aa@matrix.gatewaynet.com> <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Message-ID: <0725142a-6924-56dc-5dd2-525e98669894@8kdata.com> Date: Tue, 31 Oct 2017 11:56:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <09a677fd-144f-6b16-57a8-ed6a18f3ff08@matrix.gatewaynet.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 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