chaosd icon indicating copy to clipboard operation
chaosd copied to clipboard

disk attack: support inject write/read payload for specified duration

Open WangXiangUSTC opened this issue 3 years ago • 0 comments

For example, I want to inject a write payload while an experiment, and the experiment need to run for a long time. I need to write a shell script like the below:

#!/bin/bash

for((i=1;i<=100;i++));
do
    ./chaosd attack disk add-payload write -p /chaosd_data -n 2 --size 100G
    rm /home/root/chaosd_data
done

I can't set the size with a large value, because the storage capacity is limited.

Maybe we should add duration config for disk attack, and chaosd will write and delete automatically.

WangXiangUSTC avatar Dec 30 '21 03:12 WangXiangUSTC