Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3Wwt-0006ae-JE for pgsql-performance@arkaria.postgresql.org; Fri, 12 Jun 2015 21:57:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z3Wws-0003F0-V3 for pgsql-performance@arkaria.postgresql.org; Fri, 12 Jun 2015 21:57:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z3Wwr-0003Eo-Qo; Fri, 12 Jun 2015 21:57:13 +0000 Received: from proofpoint1.mail.rice.edu ([128.42.201.100] helo=pp1.rice.edu) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z3Wwm-0000jU-A6; Fri, 12 Jun 2015 21:57:12 +0000 Received: from pps.filterd (pp1.rice.edu [127.0.0.1]) by pp1.rice.edu (8.14.5/8.14.5) with SMTP id t5CLprIT024861; Fri, 12 Jun 2015 16:57:03 -0500 Received: from mh2.mail.rice.edu (mh2.mail.rice.edu [128.42.201.21]) by pp1.rice.edu with ESMTP id 1ut839vqth-1; Fri, 12 Jun 2015 16:57:03 -0500 X-Virus-Scanned: by amavis-2.7.0 at mh2.mail.rice.edu, auth channel X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh2.mail.rice.edu (Postfix) with ESMTP id 77FF4500132; Fri, 12 Jun 2015 16:57:03 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id 1DE991005CF; Fri, 12 Jun 2015 16:57:03 -0500 (CDT) Date: Fri, 12 Jun 2015 16:57:03 -0500 From: "ktm@rice.edu" To: "Sheena, Prabhjot" Cc: "pgsql-general@postgresql.org" , "pgsql-performance@postgresql.org" Subject: Re: pg bouncer issue what does sv_used column means Message-ID: <20150612215703.GF31129@aart.rice.edu> References: <13E39D789E19FF4E9A87F6D456F3F982E91098@SEAMBX03.sea.corp.int.untd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13E39D789E19FF4E9A87F6D456F3F982E91098@SEAMBX03.sea.corp.int.untd.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1506120380 X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Fri, Jun 12, 2015 at 09:37:36PM +0000, Sheena, Prabhjot wrote: > Here is some more information > > pool_mode | transaction > > We have transactional pooling and our application is set up in such a way that we have one query per transaction. We have set default pool size to 100. > > This is output . As you guys can see active connection are 100 and 224 are waiting. We are planning to move default pool size to 250. Please suggest if you guys think otherwise > > pgbouncer=# show pools; > database | user | cl_active | cl_waiting | sv_active | sv_idle | sv_used | sv_tested | sv_login | maxwait > -----------+-----------+-----------+------------+-----------+---------+---------+-----------+----------+--------- > pgbouncer | pgbouncer | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 > site | feature | 418 | 0 | 20 | 17 | 0 | 0 | 0 | 0 > site | service | 621 | 224 | 100 | 0 | 0 | 0 | 0 | 0 > site | zabbix | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 > > Prabhjot Singh > Database Administrator > > CLASSMATES > 1501 4th Ave., Suite 400 > Seattle, WA 98101 > 206.301.4937 o > 206.301.5701 f > > From: Sheena, Prabhjot > Sent: Friday, June 12, 2015 10:57 AM > To: 'pgsql-general@postgresql.org'; 'pgsql-performance@postgresql.org' > Subject: pg bouncer issue what does sv_used column means > > Guys we see spike in pg bouncer during the peak hours and that was slowing down the application. We did bump up the connection limit and it is helpful but now we again notice little spike in connection. And one thing that I notice that is different is jump in sv_used value when I run command show pools during problem times > > > Can anyone please explain what value of sv_used means when i run show pools; > > > > Regards > Prabhjot > Hi Parbhjot, The spike in pgbouncer during peak hours just indicates that you are busier then. How many sv_active do you have in non-peak hours? What kind of system is this on? I suspect that your hardware cannot actually handle 100 simultaneous processes at once and if you increase that to 250 processes there is a good likelyhood that your system response will get even worse. Number of CPU to 2x number of CPU is typical for peak performance throughput. Are you using a 50-core system? What do the I/O stats look like? You may be I/O limited. Regards, Ken -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance