Last active
August 19, 2019 14:06
-
-
Save adhorn/1ea31884d4f19db8f579aa4ed72e0c74 to your computer and use it in GitHub Desktop.
CPU stress document for SSM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
schemaVersion: '2.2' | |
description: Run a CPU stress on an instance | |
parameters: | |
duration: | |
type: String | |
description: 'Specify the duration - in seconds - of the CPU burn. (Required) ' | |
default: "60" | |
cpu: | |
type: String | |
description: 'Specify the number of CPU stressors to use (default all)' | |
default: "0" | |
mainSteps: | |
- action: aws:runShellScript | |
name: ChaosCPUAttack | |
inputs: | |
runCommand: | |
- stress-ng --cpu {{ cpu }} --cpu-method matrixprod -t {{ duration }}s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment