Labels

Aws (32) MySQL (20) Aurora (12) Rds (7) DynamoDB (6) Cloudformation (4) Python3 (4) Unix (3) MongoDB (1)

Friday, 20 January 2017

Aurora–Out of Memory

 

Aurora cluster writer 2xlarge with 20GB memory.

I was doing bunch of updates on all orders, members, Catalogs table. The scope was to replace some information for certain fields.
The operation was quite heavy because the tables have more than 50 Milions rows and it had a condition with like and percent at the beginning.
It didn't generate the best execute plan because that condition doesn't use the index on that field.
I had to develop a store procedure that had in input the lower and upper id limits, the primary key, and the range that it needs to add at every run.
Quite simple procedure that allow to split up the updates in smaller pieces.

Friday, 13 January 2017

External slave slows down Aurora Master replication

As a heavy user of RDS Aurora cluster, I had some chances to test it and find a few problems.

I'm going to summarize and show in which case the Aurora can have a very bad behaviour in case it is in a chain of replica servers.