stress-ng, is a package for running stress test on OS, platform.
With this "REST-like wrapper", you can run stress-ng over HTTP.
ex) running this in your shell, a stress test of "50% load - 1cpu test - for 15 seconds"
curl http://localhost:8080/usr/bin/stress-ng?--cpu&1&-l&50&-t&15s
more examples for stress-ng parameters are here.
- some kind of container platform ( i.e. Docker, Kubernetes, ...)
sudo docker run --rm -p 8080:8080 stresst
curl http://localhost:8080/usr/bin/stress-ng?--cpu&1&-l&50&-t&15s
sudo docker build . -t stresst
# License
MIT