I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far
root@docker-vm:/# stress --vm 10 --vm-bytes 2048M --vm-hang 20 stress: info:  dispatching hogs: 0 cpu, 0 io, 10 vm, 0 hdd stress: FAIL:  (415) <-- worker 243 got signal 9 stress: WARN:  (417) now reaping child worker processes stress: FAIL:  (451) failed run completed in 101s
for memory pressure (hoping OOM kill for host machine which has 4Gb of ram) and
stress --cpu 100 which is obviously not really harmful.
Is there some tool to achieve that for docker or preferred approach I should use?