Have heard chaos-duck ? no? ok.
That’s the name of the script that will destroy and disrupt an stable system. its license by company where i work.
Why disrupt stable system?
Some stable platform need this kind of script to simulate disaster and apply mitigation before the real disaster coming. so yes i create some script . . with disaster level like in the (one punch man). stop that and stop this and i was confuse how do i make CPU or RAM peak.
how to install it? just do :
sudo apt-get install stress
Stress test to CPU
For doing stress test to cpu we need to know how much cpu in our machine so i could get that with :
grep -c ^processor /proc/cpuinfo
and do the stress test (example with 2 core) and stress test will be done in 120 second.
stress --cpu 2 --timeout 120
Stress test to RAM
to stress test memory we need to define how much we will fill up memory and how much is it. if you have 4Gb ram you could fill up
1024M * 4 it will be :
--vm 4 --vm-bytes 1024M
Stress test could also test IO
i have not try this but the command should be
thats it you could simulate the disaster to your app
You could destroy your own computer too. with combine all command
stress --cpu 2 --io 4 --vm 2--vm-bytes 1024M --timeout 300s
hope this will help you who have a task to test your system