Mercurial > hg > Members > nobuyasu > jungle_benchmark
changeset 20:61221984aa56
stress_weighttp.sh
author | Nobuyasu |
---|---|
date | Wed, 29 Jan 2014 16:00:44 +0900 |
parents | c28f8d47c60d |
children | a972a5814b0b |
files | distributed/weighttp/stress_weighttp.sh distributed/weighttp/weighttp_write_jungle.sh |
diffstat | 2 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/distributed/weighttp/stress_weighttp.sh Wed Jan 29 14:16:08 2014 +0900 +++ b/distributed/weighttp/stress_weighttp.sh Wed Jan 29 16:00:44 2014 +0900 @@ -34,15 +34,16 @@ echo $num } -myNum=`get_my_num < $clientsFile $hostname` -nodeUrl=`get_node_name < $nodesFile $myNum` -uri=":8080/editMessageUseGet?bname=hello%20world&uuid=0&author=oshiro&msg=write_test&key=" +#cat $clientsFile +num=0 +myName=$1 + while read serv + do + echo "while" + if [ $serv = $myName ]; then + break + fi + num=`expr $num + 1` +done +echo $num -now=$(date +%s) -sleepTime=`expr $schedule - $now` -sleep $sleepTime -ret=`/home/mass/student/k128576/opt/bin/weighttp -n $requestNum -c $concurrent -t $threadNum -k $nodeUrl$uri` -#ret=`/home/mass/student/k128576/opt/bin/weighttp -n 100000 -c 200 -t 2 -k $nodeUrl$uri` -#echo $ret -time=`echo $ret | awk '{print $62 " " $63 " " $82 " " $83}' ` -echo $time
--- a/distributed/weighttp/weighttp_write_jungle.sh Wed Jan 29 14:16:08 2014 +0900 +++ b/distributed/weighttp/weighttp_write_jungle.sh Wed Jan 29 16:00:44 2014 +0900 @@ -1,6 +1,6 @@ #!/bin/sh # -#PBS -q cqueue +#PBS -q bqueue #PBS -N write_jungle #PBS -l walltime=00:05:00 @@ -9,7 +9,7 @@ function run() { while read serv do - ssh $serv "$command $clientsFile $nodesFile $schedule $requests $concurrent $thread" & + ssh $serv "$command /tmp/nodes $nodesFile $schedule $requests $concurrent $thread" & done wait }