I’ve been recently going through our DBs and came across some odd setup.
We have a single instance Aurora MySQL DB running, which is producing a lot of IO costs. (~300,000,000 IOs/day).
I’m trying to find a way to re-calculate that one to “real” IOPS (meaning if you’d use provisioned storage in RDS).
My assumed formula would be: Total billed daily IOPS /(24*3600), which in this case would mean in this case approx 3500 IOPS, pretty stable with not many outliers.
Including burst and so on, this could be covered by a 1.3TiB GP2 volume and using RDS.
Now the question: Is my calculation right in this case? Or am I overseeing something fundamental?
My understanding is take the figure you see for billable write and read io in aurora metrics (which is io per 5 minute intervals), add them together and then divide by seconds (ie divide by 300 ) to get roughly the IO you would need in EBS (RDS).
Your calculation seems right to me, but only if you have a constant, non-bursty workload throughout the day as GP2 won’t be able to handle bursts like Aurora does.
This is correct. You need to look at the Clihdwatch metrics in time-series to see the distribution of the IOPs. It’s unlikely you’re seeing a steady 3,500 IOPs all day long, more likely it’s bursting during periods.
Check your max IOPs at whatever granularity you can.
There’s some gotchas when comparing IOPS between Aurora and regular RDS. Check out this AWS forum post and look for the reply by awsdavew. It’s for PostgreSQL instead of MySQL, but the Aurora log storage vs block storage idea should be the same between them.
Let’s start with comparing IOPS between Aurora PostgreSQL and RDS PostgreSQL. This is less comparing apples and oranges as it is comparing apples and, say, a cheeseburger. Aurora uses a log based storage system as opposed to a data block based system for traditional PostgreSQL. As such the writes are very different.
In Aurora PostgreSQL, the “Write IOPS” metric reports the number of Aurora storage write records generated per second. This is more or less the number of log records generated by the database. These do not correspond to 8K page writes, and do not correspond to network packets sent.
Hi, thx for the input. The 3500 was just a ball park estimation, after a more closer look it peaked at 5kIOPS. So basically plan would be 2tB gp2 and still have 1kIOPS baseline space, plus approx several k in burst.
The post itself is hidden behind a 400-bad request-wall, but I get what this should be about. Nonethelss, on the other hand I found a rather interesting article which compares the performance of RDS and Aurora Postgresql depending on the GP2-IOPS: