What does 'draining' mean in this migration, and why was it necessary?
Draining means moving tenant databases off an RDS instance before conversion, specifically to bring its file count down to a level Aurora can enumerate within its startup timeout. Since reducing files per database wasn't practical (Jira's schema needs its full complexity to function), and Aurora's timeout couldn't be changed, reducing the number of tenant databases per cluster was the only lever left to solve the startup failure.
Answered in
The Migration Trick That Moved 4 Million Databases Without a Bigger FleetAtlassian couldn't provision enough spare capacity to migrate 4M Jira databases at once. So they made the migration feed itself — a daisy chain, not a fleet.
Read the full analysisOther questions this article answers
- Why did Atlassian's Aurora clusters fail to start even though replication looked healthy?
- How does the 'daisy chain' approach avoid needing a large pool of spare infrastructure?
- Why did draining prioritize the smallest, least-used tenants first?
- Why keep the same instance count strategy (nearly tripling Aurora instances) if the goal was cost efficiency?
More system design & architecture questions
- How much spare capacity should a gateway keep?
- Why are bounded queues important for availability?
- Should a load balancer always move requests away from an unhealthy server?
- Can a circuit breaker prevent every cascading failure?
- Why does pagination improve API performance beyond just 'smaller responses'?
- Why is asynchronous logging faster than writing logs synchronously?
- When does caching actually help API performance, and when doesn't it?
- Why does payload compression trade CPU time for network time, and when is that worth it?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design & Architecture beat.