Strange behavior while running pgbench
: increasing connections and no tps if the run is interrupted and resumed
#503
Labels
bug
Something isn't working
This has been observer on head 400e019 while testing #456 .
The operating system is Rocky Linux 9, PostgreSQL 16.6 on localhost. The application has been compiled with clang.
In short: running
pgbench
several times thrupgagroal
works as expected unless it is keyboard interrupted, and from then ongoing the connections keep rising without producing "results".The
pgagroal_databases.conf
contains:so no more than 20 connections, even if in the end they keep increasing over the limit.
First run (OK)
This completes just as expected:
Second run (manually inrettuped)
This is keyboard interrupted
Third run (problematic)
Here the problem is that :
tps
reported are zero, hence probablypgbench
does not honor the-T
flag and runs forever, without reporting any particular error. Thepgagroal
logs do not showing nothing at all during this execution. It seems that the connections are recycled but are in a state "unusable".Fourth run (problematic)
Even after a
pgagroal-cli flush
the situation does not improve, i.e., thetps
is still zero. Moreover, the number of connections reported on the PostgreSQL side is increasing over themax_connections
configured on the datbaase limit.The text was updated successfully, but these errors were encountered: