AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

“stress: command not found” Can’t find/install stress to simulate load for auto-scaling experimentation

In Lab – Auto-Scale Experiment (Chapter 6.17) Scott introduces a cool little unix utility called ‘stress’ to simulated load. My issue is that I am unable to use that command has he does in the lab (by running ‘stress –cpu 8 –timeout 15s’ as ec2-user). when I attempt, I get "stress: command not found". I’ve searched around and have attempted installing stress and stress-ng which also have not been successful: 

–[ec2-user@ip-172-31-65-196 ~]$ sudo yum install stress

–Loaded plugins: extras_suggestions, langpacks, priorities, update-motd

–amzn2-core | 3.7 kB 00:00:00

–No package stress available.

I’ve attempted this within the ACG Cloud Sandbox as well as the Cloud Server (Amazon Linux 2 distribution)

am I the only one facing this issue? any help would be greatly appreciated

1 Answers

Figured it out! In case you have the same issue, it was addressed [here](Figured it out! In case you have the same issue, it was addressed here: https://acloud.guru/forums/aws-certified-solutions-architect-associate/discussion/-L2piWxIn59Se-kF7x3M/in-the-new-aws-linux-2-stress-isnt-available?answer=-LhanRCdVeJ2uKMaUc-8)

To get through this lab, you can update the bootstrap script to be:


#!/bin/bash

yum update -y

amazon-linux-extras install epel
yum install stress -y
/usr/bin/stress --cpu 8 --timeout 10m

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?