Catalogue / cloudflare-2022-postgres-tenant-isolation

Cloudflare forks PgBouncer to kill connections for per-tenant concurrency throttling on multi-tenant Postgres

Cloudflare. Multi-tenant Postgres database clusters.

Organisation
Cloudflare
Evidence
Reported from production
Source
Performance isolation in a multi-tenant database environment

The Cloudflare Blog, published 2022-08-26

Records

Decision#d1

Fork PgBouncer to throttle and kill active tenant connections at the database gateway

Failure#f1

Recurring noisy-neighbor bursts and expensive queries starved bare-metal Postgres clusters and blocked PgBouncer pools

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.