Mercurial > hg > Members > nobuyasu > jungle_benchmark
annotate stress_read_write_cassandra.sh @ 18:358c96fab537
Added weighttp/test.sh
author | Nobuyasu |
---|---|
date | Wed, 29 Jan 2014 12:57:18 +0900 |
parents | 5ea96ce6a1c1 |
children |
rev | line source |
---|---|
3
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #!/bin/sh |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 # |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 #PBS -q tqueue |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 #PBS -N read_write_jungle |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 #PBS -l walltime=00:05:00 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 script=/home/mass/share/student/k128576/jungle_benchmark/stress_read_write_cassandra.rb |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 function run() { |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 while read serv |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 do |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 ssh $serv "/usr/local/bin/ruby $script $schedule $times" & |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 done |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 wait |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 } |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 uniq $PBS_NODEFILE /tmp/nodes |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 run < /tmp/nodes |