How to generate a simulated load on an EC2 instance to test Auto Scaling Group / ASG

How to generate a simulated load on an EC2 instance to test Auto Scaling Group / ASG

There are an lots of ways to create load, here is one (requires root):

dd if=/dev/zero of=/dev/null

This command will quickly use a lot of CPU.

Use control-c  twice to kill.  WARNING NEVER DO THIS TO AN EXISTING DEVICE

if = input file

of = output file

You can see in my example “of=/dev/null” – in other words write to a null device.  

WARNING!!! NEVER set “of=’ TO AN EXISTING DEVICE – unless you want to wipe it out.

 

Leave a Comment

Scroll to Top