- Newest
- Most votes
- Most comments
Yes, Aurora Serverless v2 uses active workload as a signal to prevent scaling down. Background processing, administrative tasks, and continuous write activity can all prevent the cluster from reaching minimum capacity. The persistent write pressure you're observing from WordPress—4,600 to 7,900 write operations per second—is almost certainly keeping your cluster above the floor, independent of connection count.
Regarding your specific questions:
Write IOPs and scaling behavior: Aurora Serverless v2 continuously tracks resource utilization including CPU, memory, and I/O activity. High write throughput requires compute resources to process those operations, which prevents scaling down. Fixing the connection timeout alone will likely not be sufficient if the write pressure continues at current levels. You need to address both the connection pooling issue and the WordPress autoload bloat to see meaningful scaling improvements.
Scaling response time after configuration changes: Aurora Serverless v2 is designed to scale with minimal overhead and can respond relatively quickly to workload changes. However, there isn't a published specific timeframe. The cluster will scale down incrementally (in 0.5 ACU steps) as resource utilization decreases. Once your connections drop and write activity subsides, you should see scaling begin within minutes to hours, but the exact timing depends on how quickly the workload actually decreases.
InnoDB flush configuration: Aurora's architecture does provide durability through its distributed storage layer with six copies across three Availability Zones. However, modifying innodb_flush_log_at_trx_commit and related parameters requires careful consideration of your specific durability requirements and workload characteristics. These are capacity-related parameters that Aurora handles differently during scaling. Before making changes, ensure your new maximum capacity can support any custom parameter values you've set—incompatible configurations can prevent scaling and may be automatically rolled back.
Observing scaling decisions: To track actual ACU usage and identify scaling issues, monitor the ServerlessDatabaseCapacity, ACUUtilization, CPUUtilization, and FreeableMemory CloudWatch metrics. Configure CloudWatch alarms to receive proactive alerts. If ACUUtilization and CPUUtilization approach 100%, your cluster has insufficient maximum capacity. However, CloudWatch doesn't expose the internal scaling decision logic directly. Performance Insights can help identify what workload is consuming resources, but won't tell you explicitly why scaling didn't occur.
Additional recommendations: Consider using Amazon RDS Proxy for connection pooling with retry logic and exponential backoff to reduce connection pressure. Regularly optimize your database queries and run maintenance commands. For your WordPress workload specifically, cleaning up the autoload bloat should significantly reduce write pressure. You might also consider whether stopping and starting the cluster during known low-usage periods could provide cost savings for your development or test environments, though this causes downtime and may not be appropriate for production.
The combination of persistent connections and continuous write activity is preventing your cluster from scaling down. Address both issues systematically and monitor the CloudWatch metrics to verify improvement.
Sources
Troubleshoot scaling issues for Aurora Serverless v2 | AWS re:Post
How Aurora serverless works - Amazon Aurora
Requirements and limitations for Aurora serverless - Amazon Aurora
answered 2 months ago
Hello.
Aurora Serverless v2 scales by evaluating aggregate resource usage—collectively termed "load"—that encompasses not only CPU but also memory, network, internal database processing, and Aurora management tasks.
AWS explicitly states that capacity may not always scale down to the minimum level, even when there is no load.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.how-it-works.html
If the features described in the following document are enabled, resource usage may increase, and the system may fail to scale down.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.setting-capacity.html#aurora-serverless-v2.troubleshooting
Certain features can increase resource usage and prevent the database from scaling down to minimum capacity. These features include the following:
- Aurora global databases
- Exporting CloudWatch Logs
- Enabling pg_audit on Aurora PostgreSQL–compatible DB clusters
- Enhanced Monitoring
- Performance Insights
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 4 months ago
