Re: pg bouncer issue what does sv_used column means

From: "Sheena, Prabhjot" <Prabhjot(dot)Singh(at)classmates(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: pg bouncer issue what does sv_used column means
Date: 2015-06-12 21:37:36
Message-ID: 13E39D789E19FF4E9A87F6D456F3F982E91098@SEAMBX03.sea.corp.int.untd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

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(at)postgresql(dot)org'; 'pgsql-performance(at)postgresql(dot)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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Dunstan 2015-06-12 21:49:48 Re: pg bouncer issue what does sv_used column means
Previous Message Xenofon Papadopoulos 2015-06-12 20:26:36 Re: pg bouncer issue what does sv_used column means

Browse pgsql-performance by date

  From Date Subject
Next Message Andrew Dunstan 2015-06-12 21:49:48 Re: pg bouncer issue what does sv_used column means
Previous Message Michael Nolan 2015-06-12 21:13:49 Re: Are there tuning parameters that don't take effect immediately?