In AWS RDS Aurora – Monitoring section we notice that, even though most time there is no database activity (according to Monitoring and Performance Insights),
We still notice that for the past weeks,
- Aurora Write IOPS was high at all times
- Aurora Write Latency was high at all times (multiple 100s of ms to seconds)
Why could this be?
What could caue the Write IOPS saturation?
There is no Database activity that we can see.
3
Answers
There is a bug in the metric. Anyway, In case of AWS Aurora, the writes are done only in memory and to the storage cluster. Inspecting the write latency on the storage cluster, using SSD, is 1ms per write. It is still concerning that the EBS (in our case) write latency on the DB instance is high but the database storage (logs, pages) is not on instances disk or volume or EBS, but only in discs on the storage cluster. So it is a bit less concerning and less impacting on the INSERT or COMMIT latency.
Open a connection to the Aurora instance and search for long running queries:
This will show you any queries that you can then kill.
If it doesn’t reveal any queries then something seems wrong with the instance. I would stop and start the instance to see if the behavior changes.
I had the same issue, I was getting billed for a little over 21 million write IOPS and about 30k read IOPS per month for an unused, dormant cluster of 2 with 5 tables containing about 23 records collectively (all put together might make 2KB in data). I opened a case with AWS who replied with: