AWS EC2 Auto-Scaling and CloudWatch Alarm Trigger

0

I have a double.

You need to have CloudWatch with an alarm to trigger un action to Auto-Scaling works?

Problem.

I have EC2 instances that I would like to do Auto Scaling with a monitor CPU above a certain value add new instance ou below the CPU utilization for values remove a instance.

Auto Scale policies is not sufficient to do this monitoring? I need Cloud watch to trigger an action and call auto scaling to add a new instance?

1 Antwort
2
Akzeptierte Antwort

Hello.

If you want to scale EC2 based on CPU usage, I think you can do it by creating a "target tracking scaling policy" by following the steps in the document below.
When you configure this setting, a CloudWatch Alarm will be created and used for scaling.
https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html#policy_creating

profile picture
EXPERTE
beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen