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.

demandé il y a un an240 vues
1 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions