Mercurial > hg > Database > Alice
annotate scripts/ring_run.sh @ 605:b7eedaa38aeb dispose
close
author | suruga |
---|---|
date | Wed, 19 Apr 2017 19:19:50 +0900 |
parents | 2a8440684441 |
children |
rev | line source |
---|---|
31 | 1 #!/bin/bash |
40 | 2 |
3 if [ ! -d output ]; then | |
4 mkdir output | |
5 fi | |
6 | |
31 | 7 max=$1 |
46 | 8 count=$2 |
348 | 9 jar_path=../build/libs/Alice.jar |
10 | |
31 | 11 ruby ./topology/ring.rb $1 > ./topology/ring.dot |
48
f60c0246c8ce
add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
46
diff
changeset
|
12 #dot -Tpng ./topology/ring.dot > ./topology/ring.png |
f60c0246c8ce
add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
46
diff
changeset
|
13 #open ./topology/ring.png |
348 | 14 java -cp $jar_path alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot -log ./output/manager.log -level debug & |
31 | 15 |
16 cnt=0 | |
17 while [ $cnt -lt $max ] | |
18 do | |
348 | 19 java -cp $jar_path alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/ring${cnt}.log -level debug -count $count -size 4096 -nodeNum $max & |
31 | 20 cnt=`expr $cnt + 1` |
21 done | |
22 wait |