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

posta un anno fa2859 visualizzazioni
3 Risposte
1
Risposta accettata

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
con risposta un anno fa
profile picture
ESPERTO
verificato un anno fa
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
ESPERTO
James_S
con risposta un anno fa
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande