Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
4 views
in AWS by (29.3k points)

I do have another doubt with running the stress command in my instances to help me test my auto scaling group. I find it difficult to install and run the stress command. Can anyone help me with the right command to accomplish this . Also command to stop the stress tool so that scale in can occur.

1 Answer

0 votes
by (50.2k points)
You need to install stress first then after that, you can test the CPU usage. Then you need to run the commands for stress.
​commands to install stress:
sudo yum install -y stress
to check the current CPU utilization use:
uptime
you will get the usage then increase the workers(nothing but the number of nodes) by using this command.
sudo stress --cpu  8 --timeout 20
here we are using 8 workers to increase the stress, now run the uptime command again and check the stats if it doesn't reach required usage then increase the number of workers. Thus, you can use the stress command and test auto-scaling.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

+1 vote
1 answer
asked Sep 28, 2019 in AWS by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...