Scaling serverless Postgres: How we implement autoscaling
Blog post from Neon
The release of autoscaling in Feature-Preview allows databases to accommodate varying workloads by automatically increasing or decreasing CPU and memory allocation based on the current load. This feature provides several benefits, including accommodating varying and unexpected workloads, being highly scalable, saving time for manual management, scaling without restarting, simplified management, cost efficiency, and preventing overcommitting resources. The autoscaling system is implemented using a combination of Kubernetes, NeonVM, and cgroups to manage the allocation of resources to Postgres instances running in virtual machines. The system can handle live migrations of VMs to reduce load on nodes, and also includes a local file cache to speed up queries by utilizing additional memory when available.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Kubernetes | 12 | 1,328 | 195 | 77 | -5% |
| Serverless | 2 | 895 | 170 | 78 | +67% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.