Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCRMG-0007IE-Lu for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 15:34:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCRME-0006vl-CG for pgsql-general@arkaria.postgresql.org; Tue, 16 Oct 2018 15:34:06 +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.89) (envelope-from ) id 1gCRME-0006ve-16 for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 15:34:06 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gCRMB-00086t-92 for pgsql-general@lists.postgresql.org; Tue, 16 Oct 2018 15:34:05 +0000 Received: by mail-qt1-x832.google.com with SMTP id q40-v6so26223779qte.0 for ; Tue, 16 Oct 2018 08:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=J/L5wxPu8R3+7hf17lOV9qQ0sBJ6iJzhWYJX4I7vLHU=; b=Te5oqPG62MRtQu0vIrsyVNoLlZMbkMNG2CV8Wl/TJ9n1e1otFUuXMB/BirF2qwUOSS dP+u8CoDS4regripFbCPJ8+cdzAxPnhq45Kqgkl3mzdMCJOIRo4zUtEHiH6YLePF46dI EWLyl/FkqI5eYX5cVDO0DVq6syyxqC5IWxlFrZTmruqkZmy2aKnBlryH/MW57Aj87WbT 5ugSo3vU/+/4qInwgAXK+ATvjclbpBBgHjchZPWxMZ7MmGB9XEzx9TETHu4jmP1W60ax Bwny/d3a1SvVshDIktj/Pcrxjl2iaLnaFMNAzrjhRHKDHUbk6l7I/2fxhTyeOLJylV8N XNZw== 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:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=J/L5wxPu8R3+7hf17lOV9qQ0sBJ6iJzhWYJX4I7vLHU=; b=hgx8gYuvLiC1IqHgTfCyJ64GirSY9wOpUavvLOac9jRofWdZfh96AxWdTNXxZFvH1E IG1xjmyYef/AjfvX/fzOMxoarWmlsxP+92GFTBcqsQdn16Ad6OZx1UXeS34+AeXsX9Ix mLqbvlcRgLKwovVmu8BmIKpammIuTkLaXvbQmGQGYm5zmh1dgEiFKlkDMBmteL49GFn3 OOd8shiDBYSxJo/2dbzp7W0y4N82Vmy+dTJkhm8GRpGGK+W7oZ27kYhb1B0EeKT2E5f3 UJmPjoSIMReKAt17BwpdSoYNYx0jKKDO+yB2wKt/WDpK4CbRHCHIsH8yL/Y9+Ow8bLA/ zC6A== X-Gm-Message-State: ABuFfohwS//BT1J3lLhBr7/kK6kmLOBJxzCGTvzYnzaVT939gb0j4/Bn AbE6oVfzOaAkWCTwbNdhSBIdhg== X-Google-Smtp-Source: ACcGV62lLBITcSGeRmdG/exD5AHY+QvJKQLZIp6+7yzWZA7Kdl7uwtEDF+f3GeFA3Q30Z+r+AkG8kw== X-Received: by 2002:ac8:26cb:: with SMTP id 11-v6mr21356815qtp.179.1539704041033; Tue, 16 Oct 2018 08:34:01 -0700 (PDT) Received: from alderaan.marques (host205.190-225-151.telecom.net.ar. [190.225.151.205]) by smtp.googlemail.com with ESMTPSA id b134-v6sm9274929qka.45.2018.10.16.08.33.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 08:34:00 -0700 (PDT) Subject: Re: Pgbouncer discard all To: Nicola Contu Cc: Scot.Kreienkamp@la-z-boy.com, pgsql-general@lists.postgresql.org, Alessandro Aste References: <17082AAFC33A934082836458CB53494374D3C416@MONDB03.na.lzb.hq> From: Martin Marques Openpgp: preference=signencrypt Message-ID: Date: Tue, 16 Oct 2018 12:33:56 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El 16/10/18 a las 12:12, Nicola Contu escribió: >  2492534808 | dev    |   7355 | 1833427130 | pgbouncer       |          >                | 10.151.2.145   |                 |       60570 | > 2018-10-16 14:13:05.151015+00 |                               | > 2018-10-16 15:10:40.309993+00 | 2018-10-16 15:10:40.310038+00 | Client >   | ClientRead          | idle   |             |              | DISCARD ALL > > They are idle actually. > Will they count as client connection on the total amount set on the > postgres.conf? Yes, but that's the idea of having a pooler in between the app and the server. Whenever the app needs a new connection it will reuse one from the pool, instead of having to open a new connection. pgbouncer will eventually close the connection if it stays in the pool for longer than server_lifetime or server_idle_timeout. Regards, -- Martín Marqués http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services