Earlier quoted context omitted.
> One thing that surprised us that our TAM says that on a 1 AZ write-heavy workload normal MySQL would have higher performance as Aurora synchronously write to storage servers in other AZs What is surprising about a multi-AZ database having higher latency than one that runs in only one AZ?
From what I can tell, they provisioned their DB instance(s) in a single AZ, but weren't aware that Aurora automatically provisions its own storage and always uses multiple AZs. We touch on the separation of compute and storage in the post. I think the surprise is that it's not possible to have a truly "single AZ" Aurora database, even though you might have thought you provisioned your DB instances that way.
Exploring performance differences between Amazon Aurora and vanilla MySQL
11–20 of 21 posts
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#12Earlier quoted context omitted.
> One thing that surprised us that our TAM says that on a 1 AZ write-heavy workload normal MySQL would have higher performance as Aurora synchronously write to storage servers in other AZs What is surprising about a multi-AZ database having higher latency than one that runs in only one AZ?
From what I can tell, they provisioned their DB instance(s) in a single AZ, but weren't aware that Aurora automatically provisions its own storage and always uses multiple AZs. We touch on the separation of compute and storage in the post. I think the surprise is that it's not possible to have a truly "single AZ" Aurora database, even though you might have thought you provisioned your DB instances that way.
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#13The simplest is probably read committed especially if like many ETL jobs you are just going to grab stuff using one read for further processing. Another option, do a read committed and omit last 15 minutes of data if you are doing long running jobs to avoid churn at end of tables / logs. I see folks doing serializable reads for historic ETL jobs with one read in the transaction - why? Is there some history / tool iss…
For Aurora MySQL, the default for read-only replicas is repeatable read. As we mentioned towards the end of the post, read committed support appears to have been introduced to Aurora MySQL just last year. But you're right – now that it's supported, switching to read committed is by far the easiest fix. No idea why people would be using serializable reads for ETL jobs though! :O
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#14https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide...
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#15Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#16I’ve never used Aurora because I don’t want to code anything to the idiosyncrasies of AWS (or any other cloud provider).
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#17Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#18Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#19It seems like the benefits of cloud infrastructure have normalized vendor lock-in. I’ve never used Aurora because I don’t want to code anything to the idiosyncrasies of AWS (or any other cloud provider).
Re: Exploring performance differences between Amazon Aurora and vanilla MySQL
#20Really great article! I have a question: in it you say to keep an eye on RollbackSegmentHistoryListLength, and I want to do that, but I don't know at what number does it become something to worry about. There doesn't seem to be any guidance on AWS' site. I'm seeing ranges of 1,000 to 5,000 and sometimes 100,000.
If you're seeing spikes in RollbackSegmentHistoryListLength that coincide with dips in DB performance, you've probably identified the culprit. In the scenario described in our post, that metric would have grown monotonically for the duration of the long-lived ETL query – probably a more overt problem than what you're describing with short spikes to 100,000.