Home / Companies / Neon / Blog / Post Details
Content Deep Dive

Autoscaling in Action: Postgres Load Testing with pgbench

Blog post from Neon

Post Details
Company
Date Published
Author
Raouf Chebri
Word Count
1,225
Company Posts That Month
38
Language
English
Hacker News Points
-
Post removed?
No
Summary

Neon demonstrates the effectiveness of its autoscaling feature for Postgres databases by conducting a load test with pgbench, a popular benchmarking tool. The test involves simulating 30 clients executing a computationally intensive SQL query to trigger autoscaling, which dynamically adjusts CPU and memory resources based on real-time workload demands. The query, designed to stress the database, calculates the logarithms of large factorials, resulting in significant planning time and computational overhead. By leveraging pgbench and the EXPLAIN ANALYZE command, the test provides insights into database performance under load, while autoscaling ensures the system can handle variable demands without manual intervention. The results indicate that while the initial connection time is substantial, the database manages nearly five transactions per second on average, showcasing the utility of autoscaling in maintaining performance during fluctuating workloads.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 2,379 618 172 -8%
Use This Data

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.