julienlau / anarchyape

Distributed platform test tool. Manage Network partition, HDFS block corruption, etc. Hard fork of david78k/anarchyape
Other
1 stars 1 forks source link

How to use it? #2

Open BEbillionaireUSD opened 3 years ago

BEbillionaireUSD commented 3 years ago

I have successfully built maven packages but I don't know how to move to the next step. I constructed a hadoop cluster using 3 docker containers.

julienlau commented 3 years ago

what would you like to test ? I recommend installing the jarfile in each node (container for you) and using the local mode which means you open a shell prompt on a node and run the jar ape.jar. You can also try the remote mode.

Did you look at the README and example command ?

#java -jar ape.jar -h
#java -jar ape.jar -L -p,--network-drop <percentage> <duration> <nic>
#java -jar ape.jar -R -S <delay in millisec> <duration in sec> <nic>
#java -jar ape.jar -L -S 100 30 eth0
#java -jar ape.jar -L -d,--network-disconnect <time in seconds> <nic>
#java -jar ape.jar -L -d 30 eth0
#java -jar ape.jar -L --remount 
#java -jar ape.jar -L --panic 
#java -jar ape.jar -L --forkbomb

#java -jar ape.jar -L -c,--corrupt-file <file> <size> <offset>
#java -jar ape.jar -L --corrupt-file <file> <size> <offset>
#java -jar ape.jar -L -C,--corrupt-block <meta/ord> <size> <offset>

For example running java -jar ape.jar -L -p 80 30 eth0 will drop 30% network packets on interface eth0 during 30 seconds

integrii commented 8 months ago

I am not on a recruiting team of any kind and I recommend that whomever reads this does not click any links from the above comment. This is a scam of some kind.