pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedpg bouncer issue what does sv_used column means
6+ messages / 5 participants
[nested] [flat]
* pg bouncer issue what does sv_used column means
@ 2015-06-12 17:57 Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
0 siblings, 2 replies; 6+ messages in thread
From: Sheena, Prabhjot @ 2015-06-12 17:57 UTC (permalink / raw)
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>; pgsql-performance
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg bouncer issue what does sv_used column means
@ 2015-06-12 19:01 Glyn Astill <glynastill@yahoo.co.uk>
parent: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
1 sibling, 0 replies; 6+ messages in thread
From: Glyn Astill @ 2015-06-12 19:01 UTC (permalink / raw)
To: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>; pgsql-general@postgresql.org <pgsql-general@postgresql.org>
> From: "Sheena, Prabhjot" <Prabhjot.Singh@classmates.com>
>To: "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>; "pgsql-performance@postgresql.org" <pgsql-performance@postgresql.org>
>Sent: Friday, 12 June 2015, 18:57
>Subject: [GENERAL] 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;
>
>
>
See the manual:
http://pgbouncer.projects.pgfoundry.org/doc/usage.html
I believe in this instance "used" is interpreted as idle server connections that are in the process of being (periodically) health checked before being made available to clients again. A stab in the dark would be to check what query you're using in server_check_query.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg bouncer issue what does sv_used column means
@ 2015-06-12 20:26 Xenofon Papadopoulos <xpapad@gmail.com>
parent: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
1 sibling, 0 replies; 6+ messages in thread
From: Xenofon Papadopoulos @ 2015-06-12 20:26 UTC (permalink / raw)
To: ; +Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>; pgsql-performance
Unsubscribe
On Fri, Jun 12, 2015 at 8:57 PM, Sheena, Prabhjot <
Prabhjot.Singh@classmates.com> wrote:
> 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 *
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg bouncer issue what does sv_used column means
@ 2015-06-12 21:37 Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
0 siblings, 2 replies; 6+ messages in thread
From: Sheena, Prabhjot @ 2015-06-12 21:37 UTC (permalink / raw)
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>; 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@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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg bouncer issue what does sv_used column means
@ 2015-06-12 21:49 Andrew Dunstan <andrew@dunslane.net>
parent: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Dunstan @ 2015-06-12 21:49 UTC (permalink / raw)
To: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>; pgsql-general@postgresql.org <pgsql-general@postgresql.org>; pgsql-performance
Please do not cross-post on the PostgreSQL lists. Pick the most
appropriate list to post to and just post there.
cheers
andrew
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: pg bouncer issue what does sv_used column means
@ 2015-06-12 21:57 ktm@rice.edu <ktm@rice.edu>
parent: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
1 sibling, 0 replies; 6+ messages in thread
From: ktm@rice.edu @ 2015-06-12 21:57 UTC (permalink / raw)
To: Sheena, Prabhjot <Prabhjot.Singh@classmates.com>; +Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>; pgsql-performance
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
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2015-06-12 21:57 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-06-12 17:57 pg bouncer issue what does sv_used column means Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
2015-06-12 19:01 ` Glyn Astill <glynastill@yahoo.co.uk>
2015-06-12 20:26 ` Xenofon Papadopoulos <xpapad@gmail.com>
2015-06-12 21:37 Re: pg bouncer issue what does sv_used column means Sheena, Prabhjot <Prabhjot.Singh@classmates.com>
2015-06-12 21:49 ` Andrew Dunstan <andrew@dunslane.net>
2015-06-12 21:57 ` ktm@rice.edu <ktm@rice.edu>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox