Can a stress test artificially kill an ec2 instance?

0

https://launchpad.net/ubuntu/focal/amd64/stress/1.0.4-6

I want to check the value of the StatusFailChecked metric in cloudwatch after forcibly taking down the EC2 Instance as a stress test in the link above. (I wonder if the value of this metric will change if it goes down) However, it seems that the stress program is forcibly terminated when CPU or Memory is used above a certain percentage. Can't I force terminate the instance with that method? I'm also curious if it's possible to forcefully terminate the EC2 Instance as a stress test, and if so, how.

gefragt vor einem Jahr244 Aufrufe
1 Antwort
0

You can use AWS Fault Injection Simulator (AWS FIS) to test how your applications handle CPU stress. You can refer to this tutorial to create an experiment template that uses AWS FIS to run a pre-configured SSM document that runs CPU stress on an instance. The tutorial uses a stop condition to halt the experiment when the CPU utilization of the instance exceeds a configured threshold. Configure a CloudWatch alarm so that you can stop the experiment if CPU utilization exceeds the threshold that you specify.

Reference : https://docs.aws.amazon.com/fis/latest/userguide/fis-tutorial-run-cpu-stress.html

profile pictureAWS
EXPERTE
beantwortet vor einem Jahr

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