Mercurial > hg > Database > jungle-test-scripts
view scripts/ring_run.sh @ 8:8a33595a0d8c
add tree.rb
author | suruga |
---|---|
date | Wed, 07 Feb 2018 19:31:33 +0900 |
parents | 5d1ecfb72d1d |
children |
line wrap: on
line source
#!/bin/bash if [ ! -d output ]; then mkdir output fi max=$1 count=$2 jar_path=build/libs/logupdateTest-1.1.jar mkdir -p Log ruby scripts/ring.rb $1 > Log/ring.dot #dot -Tpng ./topology/ring.dot > ./topology/ring.png #open ./topology/ring.png java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf Log/ring.dot -log Log/manager.log -level debug & cnt=0 while [ $cnt -lt $max ] do java -cp $jar_path alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log Log/ring${cnt}.log -level debug -count $count -size 4096 -nodeNum $max & cnt=`expr $cnt + 1` done wait