Is there a way the EC2 instance scale vertically

0

Hi Team,

Is there a way the EC2 instance scale vertically, like whenever there is a high traffic resource has to scale up on the EC2 instance and when the traffic is less automatically resources on the instance scale down. Please let me know if there is a way for that.

Regards, Rajesh B

已提问 1 年前2859 查看次数
3 回答
1
已接受的回答

I would recommend you consider auto scaling EC2 instances. You can setup a minimum and maximum group size and your service wouldn't be disrupted when you need to scale up or down. It would also provide more fault tolerance when you spread the group over 2-3 availability zones. This also allows you to define your scale up and down criteria and pay only for the compute that you need.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html

profile pictureAWS
已回答 1 年前
profile picture
专家
已审核 1 年前
0

EC2 instances can be resized, but you will need to stop the instance (shut it down, not terminate), then reconfigure it to the new size, then start it again. If you want to perform this automatically in response to CloudWatch metrics or other events, then there's a Systems Manager Runbook which can do it for you.

The documentation is here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html and I'd recommend reviewing the "Considerations" section carefully to see if anything there will apply to you.

profile pictureAWS
专家
James_S
已回答 1 年前
0

You could also consider using a burstable performance instance - T instances. The T instance family provides a baseline CPU performance with the ability to burst above the baseline at any time for as long as required. You can read more in the EC2 User Guide at this link: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/burstable-performance-instances.html

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则