Skip to content

selfhost(infra): PgBouncer connection pooler #1200

Description

@JSONbored

Part of #977.

Add a PgBouncer sidecar to the Postgres deployment path. Without pooling, each app instance holds a dedicated Postgres connection; above ~20 concurrent reviews the connection limit becomes the ceiling.

Scope:

  • bitnami/pgbouncer service in the pgbouncer compose profile
  • Transaction-mode pooling (max_client_conn=200, default_pool_size=20)
  • Operator routes DATABASE_URL to pgbouncer:5432 instead of postgres:5432
  • SCRAM-SHA-256 authentication passthrough

Metadata

Metadata

Assignees

Labels

gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions