Scripts for testing pgbouncer w/ Timescale DB and Node.js pg package
- postgres 15.6
- timescaledb 2.14.2
- pgbouncer 1.21.0
- pg 8.10.0
Trying to reproduce this issue it makes sense that running test 1 with the default pgbouncer image could reproduce the issue and running test 2 with pgbouncer-prepared may not reproduce the issue. The difference between test 1 and 2 is that test 2 has max_prepared_statements enabled
cp example.env .env
docker-compose up -d timescaledb
docker-compose up -d pgbouncer
npm install
export $(cat .env | xargs)
node bounce-many.js --rows 100 --children 25
docker rm -f pgbouncer
docker-compose up -d pgbouncer-prepared
node bounce-many.js --rows 100 --children 25
- Can try editing
default_pool_size
andmax_db_connections
in either of the .ini files - Run
docker-compose build
after editing either of the .ini files and thendocker rm
anddocker-compose up
again
Copyright 2024 - MIT - Rhodey