Home / Companies / Trigger.dev / Blog / Post Details
Content Deep Dive

Upgrading a 56TB database that's growing at 250GB per day with (nearly) no downtime

Blog post from Trigger.dev

Post Details
Company
Date Published
Author
Daniel Sutton
Word Count
3,572
Company Posts That Month
1
Language
English
Hacker News Points
4
Post removed?
No
Summary

Trigger.dev migrated its active workloads and 1.23TB control-plane data from a 56TB AWS Aurora PostgreSQL cluster to PlanetScale while leaving nearly 55TB of mostly historical run data on Aurora, enabling a required PostgreSQL upgrade without broad application downtime. Because its durable execution platform processes roughly 250GB of data daily and supports jobs ranging from seconds to months, the company introduced routable run IDs so new runs could use PlanetScale while legacy runs remained accessible on Aurora, deployed PgBouncer to redirect connections with minimal interruption, and moved customers incrementally before making PlanetScale the default for new runs. The live control-plane migration required patches to pgcopydb to improve replication throughput, and an initial cutover failed after existing PgBouncer connections retained an Aurora username rejected by PlanetScale, producing 105 seconds of errors before an automated rollback restored service. After recopying the target data and correcting the pooler configuration, a second cutover succeeded, and Aurora was upgraded before the deadline; its reboot affected requests for old runs for about 90 seconds, while new runs and control-plane services continued operating. The experience highlighted the importance of testing persistent connections during rehearsals, and Trigger.dev plans further storage partitioning for active and completed runs.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Agents 3 5,590 1,409 270 -6%
Serverless 1 1,222 279 101 +43%
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.