Open jardayn opened 3 months ago
Same issue on V1.1.1
BUT, if I run PGBench with -C (each new tx is a new connection) - PGCat just does... nothing
[plugins.intercept] enabled = true
Intercept user queries and give a fake reply.
[plugins.intercept] enabled = true
Nah, it's not it. It's something to do with TCP connections I assum,e.
Running PGCat on a EC2 server on the same network as RDS. I have min_pool_size set to 100. PGCat is installed via Ubuntu's APT. Version: 1.1.2-dev4
WIth no other clients connected, when I check how many connections exist: PG shows 100 connections (that's correct) Query:
SELECT client_addr, state, COUNT(1) FROM pg_stat_activity GROUP BY 1,2 ORDER BY 3 DESC;
But when I run pgbench with 20 connections with this command:
The server shows 120 connections. ~115-119 of which are idle during the benchmark
Why isn't it using the existing connections? They're idle. Nothing else is using the server.
///
Another bug I noticed, is that if I run
pgbench
with 200 connections - pgcat will open >500 connections that'll sit idle for the duration of the benchmarkone.sql is just
SELECT 1;
Config: