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.

質問済み 1年前237ビュー
1回答
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
エキスパート
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ