Home > Back-end >  Allocate more resources to EC2 service on demand
Allocate more resources to EC2 service on demand

Time:09-15

I'm trying to get my service to scale with the load. It's possible to configure all these capacities and values. In that case, AWS will spawn new instances of your service. You'll have multiple instances running at the same time.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-capacity-limits.html

Is it possible to have it increase resources for a single instance instead? For example, add more RAM, when RAM usage is high.

CodePudding user response:

No, you cant scale vertically (bigger instance) on demand. You should build infrastructure that scales horizontally (more instances).

CodePudding user response:

Yes, it's possible but it will require stopping and terminating EC2 instances. AutoScaling will perform a rolling replacement.

  • Related