EC2 Instance Advice - downgrading CPU and upgrading Memory from t4g.micro

0

I have 2 t4g.micro EC2 Instances that each use 3% CPU max (ever), but up to 85% memory. Storage holds steady around 50%. I'd like to change the instance type to something better suited. I pay about $9 a month for each instance, and they run continuously.

The only type I can see with less CPU and more memory is t2.small, but if I'm understanding the pricing structure of 0.023/hour for On-Demand pricing, each server would cost almost twice what it does now. What instance type would you recommend for this usage spread?

asked 7 months ago216 views
2 Answers
2
Accepted Answer

Looking at all the available instance types and sorting by on-demand price, I reckon you're probably best off staying with what you have got https://aws.amazon.com/ec2/pricing/on-demand/

You can't lose a CPU without also losing memory, and as you've found you can't increase memory without an increaase in price (see screengrab below).

May I ask how you've arrive at the figure of 85% memory usage? If the workload is comfoptably within that at all times then tehre's probably not a reason to uplift this. It may actually be that it's not an actual active workload as such that's consuming some of this, it may be filesystem cache.

Or it may be that, depending on the application, it may grab a big chunk of memory when it starts, but never actually use all that much of it.

If you do find you're running short of memory, it may be more cost-effective to add a swap volume, rather than uplift the instance type.

Enter image description here

profile picture
EXPERT
answered 7 months ago
  • Thanks for that! The 85% number comes from monitoring - both through NewRelic and the AWS console itself. It is generally pretty steadily within 85%. I'll look into a swap volume, but won't try to change the instance type for now.

2

Hello, The cheaper option with >1GB of RAM (t4g.micro is 1GB 2VCPU), is t4g.small (2GB 2VCPU). Monthly instance price would be $12.26 instead of $6.13 (in us-east-1) You may consider using Saving Plans/reserved instances for better price. (up to $2.63).

You can use the pricing calculator to make simulations : https://calculator.aws/#/estimate?id=2cf8ea6bafa89251747bfcf036dd1d57d3f0d833

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions