Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Help choosing a MySQL RDS size for huge traffic spike next week
Post Flair (click to view more posts with a particular flair)
Post Body

I run an ecommerce store and occasionally when we have a huge (predictable) traffic spike my database will reach capacity and everything breaks. We've got a big event coming up this weekend and I'm having trouble choosing which RDS size to upgrade my database to. I'll only be running this large size for 3 or 4 days so the price isn't too important as long as it's under ~$500 for that time span.

I'm currently running on a db.t2.xlarge which has 4 vCPUs and 16 GiB RAM. I'm not sure if I should be using t2 or t3 or m or r/x. Historically the database CPU has hit 100% and that's caused major problems, so I'm thinking I can skip the memory optimized sizes and that leaves me with "standard" or "burstable". But at the same time looking at the specs the memory optimized sizes can have more vCPU power than the largest t2 size - adding to my confusion. I'd much rather choose a "too big" instance size, I've already had the site crash during the launch of a promotion for this client so I really need to make sure that doesn't happen again.

Does anybody have some advice on how exactly to choose an instance size and what I should be looking at to make this decision? I know this is super dependent on my code and my SQL queries, but even some general advice would be nice. For example, when I have about 200 users on my site the db can hit 20% CPU usage, but it's unclear to me if this scales linearly or what. I'm expecting around 2000 users at once, but it could be as high as ~10K if things go well for my client.

Thanks yall, any and all advice is super appreciated - I'm very new to dev ops and my mind implodes every day from this stuff

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,760
Link Karma
4,260
Comment Karma
5,157
Profile updated: 1 day ago
Posts updated: 8 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago