odyssey icon indicating copy to clipboard operation
odyssey copied to clipboard

show pools - cl_waiting reported for a newly connected client

Open rechtem opened this issue 4 years ago • 5 comments

When a client attach to the pooler, but does not issue SQL (idle), it is reported as cl_waiting in the "show pools" console. I am not sure this is the normal behaviour: it is misleading.

pgBouncer doc states: cl_waiting Client connections that have sent queries but have not yet got a server connection.

rechtem avatar Jan 25 '21 10:01 rechtem

Absolutely agree with you. What status should be instead of that? Should we check show clients to understand the status of connection

Gorilaz avatar Feb 24 '21 08:02 Gorilaz

IMHO it should be cl_active.

mrechte avatar Feb 24 '21 09:02 mrechte

Hello! We are actively using odyssey on our production systems. We refused from cascade's pgboncers. We set up monitoring for Odyssey. And when we have clients in queue state (show clients from console db) C | postgres | test_db | queue | | | | |
......... show stats doesn't show us that we have wait time show stats -[ RECORD 2 ]-----+----------------- database | test_db ...... total_wait_time | 0 ....... avg_wait_time | 0

Is it okay? or maybe I misunderstood something?

Gorilaz avatar Mar 12 '21 07:03 Gorilaz

Just bumped into this too.

Currently we do not calculate wait times, fixing this would be nice. Also, maybe count as cl_waiting queued (OD_CLIENT_QUEUE, clients trying to get server connection) clients instead of pending (OD_CLIENT_PENDING)? What do you think?

x4m avatar Jun 24 '22 06:06 x4m

UP

uspen avatar Oct 21 '22 08:10 uspen