Docker continer to superseed stress and add log stress
284
docker run --rm -it eminguez/docker-stress-tools -s <time in seconds> -t <cpu|mem|io|disk|log> -x <extra parameters for stress>
* To spawn 2 threads to consume cpu for 10 seconds: docker run --rm -it eminguez/docker-stress-tools -s 10 -t cpu -x 2
* To spawn 2 threads to consume io for 10 seconds: docker run --rm -it eminguez/docker-stress-tools -s 10 -t io -x 2
* To spawn 2 threads to consume disk for 10 seconds: docker run --rm -it eminguez/docker-stress-tools -s 10 -t disk -x 2
Please note that there are more options available for disk:
--hdd-bytes B write B bytes per hdd worker (default is 1GB)
* To spawn 2 threads to consume memory for 15 seconds: docker run --rm -it eminguez/docker-stress-tools -s 15 -t mem -x 2
Please note that there are more options available for memory:
--vm-bytes B malloc B bytes per vm worker (default is 256MB)
--vm-stride B touch a byte every B bytes (default is 4096)
--vm-hang N sleep N secs before free (default none, 0 is inf)
--vm-keep redirty memory instead of freeing and reallocating
A complete memory option can be: docker run --rm -it eminguez/docker-stress-tools -s 15 -t mem -x 4 --vm-hang 4
* To generate 2MBs of log to /dev/stdout: docker run --rm -it eminguez/docker-stress-tools -t log -x 2048
Content type
Image
Digest
sha256:a631e8da7…
Size
56.5 MB
Last updated
almost 11 years ago
docker pull eminguez/docker-stress-tools