LoginSignup
2
0

More than 3 years have passed since last update.

AutoScalingの動作テストでstressを使ったので備忘録

Posted at

目的

AutoScalingのスケールアウト/インを確認するために、stressを試して見たので備忘録。

インストール

stressのインストール
sudo amazon-linux-extras install epel -y
sudo yum install stress -y

CPU負荷をかける

CPU使用率を上昇させるコマンド
stress -i 1

CPU負荷がかかっているか確認

CPU使用率を確認するコマンド
top

停止方法

stressプロセスをKillするコマンド
ps aux | grep stress
root      5275  0.0  0.0   7572  1032 pts/0    S+   08:13   0:00 stress -i 1
root      5276 99.9  0.0   7572   100 pts/0    R+   08:13  20:20 stress -i 1
root      5458  0.0  0.0 119420   960 pts/3    S+   08:33   0:00 grep --color=auto stress
kill 5275 5276
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0