- Newest
- Most votes
- Most comments
The "writer is stuck" error you experienced with your Aurora MySQL Serverless v2 database likely occurred due to a combination of factors related to connection management and failover behavior.
When your connection count rapidly spiked from 200-300 to over 1000 in under a minute, this may have overwhelmed the writer instance, causing it to become unresponsive. Aurora's automatic monitoring detected this condition and attempted to initiate a failover to restore service.
However, the failover process was likely impeded because the writer instance couldn't properly complete the handoff while under extreme connection load. This explains why the database only recovered after you manually terminated all connections, which allowed the failover mechanism to complete successfully.
Aurora Serverless v2 has different scaling characteristics than v1. While long-running transactions don't prevent scaling operations in v2 as they did in v1, a sudden spike in connections can still overwhelm the system before it has time to scale appropriately.
Regarding the patches in 3.09 or 3.10, the improvement in 3.10 about "preventing unnecessary restarts during recovery" could potentially help in similar situations, as it suggests enhancements to the recovery process. However, without specific details about that improvement, it's difficult to say with certainty whether it would have prevented your particular issue.
To prevent similar issues in the future, consider:
- Implementing connection pooling to manage connection spikes
- Setting appropriate failover priorities for your reader instances
- Monitoring connection counts closely and setting alerts for rapid increases
- Ensuring your minimum ACU setting provides enough capacity to handle sudden connection spikes
- Upgrading to the latest engine version when available
Sources
Unexpected Aurora RDS Failover Promoted Smaller Reader to Writer and Demoted Writer to Reader | AWS re:Post
AppSync + Aurora Serverless V2 - The request was throttled because of insufficient resources on the database | AWS re:Post
answered a year ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 9 months ago

Neat AI feature. One nit I have with this assessment is that it treats what is probably a symptom (the connection spike), like the cause. Interesting none the less.