🛡️
Why Connection Limits Protect Both CPU and Memory
Every YSQL connection corresponds to a backend process. Each backend consumes CPU scheduling resources and memory, even when idle.
If backend connections grow unchecked, the database can suffer from:
- ● Excessive CPU context switching
- ● Higher latency due to scheduler contention
- ● Increased memory pressure from idle backend processes
- ● Greater risk of OOM events when heavy queries run
By limiting backend connections to roughly 10–15 per vCPU and using YSQL Connection Manager to multiplex client sessions, YugabyteDB clusters maintain predictable CPU scheduling, stable memory usage, and consistent query latency, even when supporting thousands of application connections.