-
Notifications
You must be signed in to change notification settings - Fork 0
/
clientsLauncher
executable file
·57 lines (53 loc) · 1.91 KB
/
clientsLauncher
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# Script to launch series of perf tests
# - on 2 to maxnumber machines
# - with the size listed in listsize
# The machines used are listed in hostnames
# It is also possible to specify the following parameters
# - ntr (number of trains)
# - warmup
# - measurement
# - cooldown
# - sleepAfterCooldown
#
# Each test generates 2 or more file (depending on the number of
# participants to the protocol) named for instance
# perf_cooldown_10_measurement_600_number_5_ntr_2_size_7000_warmup_300_concernedHost
##########################################
# Parameters of the different tests
##########################################
# Array of hostnames on which to launch the test
# WARNING : if hostnames does not contain any localhost, then in the following ficname definition,
# take off final '_'$i
#hostnames=('b313-01' 'b313-02' 'b313-03' 'b313-04' 'b313-05')
#hostnames=('localhost' 'localhost' 'localhost' 'localhost' 'localhost')
hostnames=('b313-01' 'b313-03' 'b313-05' 'b313-06' 'b313-07' 'b313-08' 'b313-09' 'b313-10' 'b313-11' 'b313-12')
serveraddress='b313-04'
serverport=('4096' '4098' '4100' '4102' '4104' '4106' '4108' '4110')
# Maximum number of machines for simultaneous launch of perf code
# NB : Cannot be more than the size hostname list
maxnumber=10
clientperhost=10
clients=100
freq1=20
freq2=20
size1=40
size2client=114
size2serv=217
##########################################
# Let's go for the different tests
##########################################
for ((n_port=0; n_port<8; n_port+=1))
do
for ((number=0; number<$maxnumber; number+=1))
do
cmd=''
client_opt="--clients $clientperhost --host $serveraddress --port ${serverport[$n_port]} --freq1 $freq1 --freq2 $freq2 --size1 $size1 --size2 $size2client"
dist="\"cd Wattfor/ ; ./clients_sim $client_opt\""
cmd="$cmd (ssh lgizard@${hostnames[$number]} $dist &);"
# we launch the test
echo -e "$cmd\n"
eval "$cmd"
done
done
sleep 3600