Skip to content

Instantly share code, notes, and snippets.

@yogithesymbian
Created October 20, 2025 03:07
Show Gist options
  • Select an option

  • Save yogithesymbian/3e4a0d2628a9f0c2e0a07850b7c4b572 to your computer and use it in GitHub Desktop.

Select an option

Save yogithesymbian/3e4a0d2628a9f0c2e0a07850b7c4b572 to your computer and use it in GitHub Desktop.
Menghindari bottleneck dari ribuan koneksi langsung ke Postgres.
[databases]
explorer = host=localhost port=5432 dbname=explorer
[pgbouncer]
listen_port = 6432
listen_addr = 0.0.0.0
auth_type = md5
pool_mode = transaction
max_client_conn = 1000
default_pool_size = 100
@yogithesymbian
Copy link
Author

jalankan salah satu query / migrate

bun run migrate

monitoring koneksi di PgBouncer:

SHOW POOLS;
SHOW STATS;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment