https://github.com/TrollScripts/cpu-troll
Part of the larger OpenChaos Suite, dedicated to raising CPU latency by the requested percentage and timespan.
https://github.com/TrollScripts/cpu-troll
chaos chaos-engineering cpu-load golang
Last synced: 3 months ago
JSON representation
Part of the larger OpenChaos Suite, dedicated to raising CPU latency by the requested percentage and timespan.
- Host: GitHub
- URL: https://github.com/TrollScripts/cpu-troll
- Owner: TrollScripts
- License: agpl-3.0
- Created: 2018-12-19T06:09:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-20T14:45:06.000Z (almost 7 years ago)
- Last Synced: 2024-11-20T16:40:00.125Z (11 months ago)
- Topics: chaos, chaos-engineering, cpu-load, golang
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-chaos-engineering - Cpu Troll - Dedicated to raising CPU latency by the requested percentage and timespan. (3. Fault Injection / CPU's)
README
# Cpu Troll
Chaos Troll dedicated to raising CPU latency by the requested percentage and timespan.This is part of the larger Chaos Troll Suite meant to provide FaaS (Failure as a Service) to improve the ease of adopting a Chaos Engineering model.
# Usage
Run the executable in any prompt and pass in the cpu usage percentage out of 100 and the length of time in seconds for the latency to last.`./cpu-troll.exe 100 15`
will run the CPU at 100% load for 15 seconds.
# Dependencies
Golang - https://golang.org/# To Build Source
Ensure that Go is properly setup on your machine. [Golang -- Getting Started](https://golang.org/doc/install)Clone the package and navigate to the directory it was cloned to in any prompt.
Run
`go build`
and the executable should be built and placed in your current working directory.