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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南