# How we scale PgBouncer in ClickHouse Managed Postgres

DevFeed: [How we scale PgBouncer in ClickHouse Managed Postgres](<https://devfeed.tech/articles/how-we-scale-pgbouncer-in-clickhouse-managed-postgres-5493.md>)

Original publisher: [Read original article](<https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres>)

Author: Kaushik Iska

Published: 2026-07-01T15:40:41Z

Content type: article

Language: en

Sources: [ClickHouse Blog](<https://devfeed.tech/sources/clickhouse-blog.md>)

Topics: [clickhouse](<https://devfeed.tech/topics/clickhouse.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Process](<https://devfeed.tech/topics/process.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>), [benchmarking](<https://devfeed.tech/topics/benchmarking.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [process](<https://devfeed.tech/tags/process.md>), [processes](<https://devfeed.tech/tags/processes.md>), [server](<https://devfeed.tech/tags/server.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

## AI overview

ClickHouse Managed Postgres scales PgBouncer connection pooling by running a peered fleet of processes across available CPU cores. Benchmarks on identical AWS EC2 setups show the 16-process fleet reaching roughly 336,000 transactions per second, about four times the single-process result.

## Source excerpt

PgBouncer is single-threaded, so a single process caps out at one CPU core no matter the box size. See how ClickHouse Managed Postgres runs a peered fleet of PgBouncer processes with so_reuseport to scale pooling across every core -- with benchmarks showin