NewsCrawler.org

Aurora Serverless v2: when it pauses at 0 ACU and how long it takes to resume

Aurora Serverless v2 の起動条件と停止条件をちゃんと確認しようと思った話
Image: zenn.dev

Aurora Serverless v2 can scale down to 0 ACU[1] and pause when no requests arrive, a feature available since November 2024. The author tested it with Prisma ORM 7, PostgreSQL 18.6, a range of 0 to 2 ACU, and ECS Fargate behind an ALB in the Tokyo region. With default settings, the database paused at 07:26 UTC after no user connections existed for the SecondsUntilAutoPause period (300 seconds by default), and ACU reached 0 about 6 minutes after the last access.

Keeping a connection open prevented the pause: setting DB_POOL_IDLE_TIMEOUT_MS to 0 or DB_POOL_MIN to 1 kept one connection in the connection pool[2] open, and ACU stayed at 0.5 or higher for 14 minutes. A health check[3] on /health/deep, which ran SELECT 1 every 30 seconds, also blocked the pause. The instance status stayed 'available' during the pause, so it has to be checked with the ACU metric or RDS events.

Resuming took 15.1 to 16.1 seconds in four tests, and the author's 30-second connection timeout let every request succeed. Observed pauses started about 5 to 8.5 minutes after the last access, so the 300-second minimum needs a margin. At Tokyo prices as of 27 November 2026, 0.5 ACU running all month costs 54 dollars, against 18 dollars a month for a db.t4g.micro single-AZ RDS for PostgreSQL instance.

Read the original zenn.dev

Sources

  • Zenn JA

    Aurora Serverless v2 の起動条件と停止条件をちゃんと確認しようと思った話

    3 likes1 bookmark0 comments

Published: First seen: Читать по-русски

Open as a page