forked from efficient/epaxos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_multimultipaxos_client.sh
35 lines (35 loc) · 1.43 KB
/
start_multimultipaxos_client.sh
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
#!/bin/bash
if [ "$(hostname)" == "node7" ]; then
export LEADER=0
./lib/ClientDriverGo -maddr=server1 -mport=7087 -p=8 -e=false -smp=true
elif [ "$(hostname)" == "node8" ]; then
#if [ "$(hostname)" == "node8" ]; then
export LEADER=0
./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
elif [ "$(hostname)" == "node9" ]; then
export LEADER=0
./lib/ClientDriverGo -maddr=server1 -mport=9085 -p=8 -e=false -smp=true
elif [ "$(hostname)" == "node10" ]; then
export LEADER=0
./lib/ClientDriverGo -maddr=server1 -mport=10084 -p=8 -e=false -smp=true
elif [ "$(hostname)" == "node11" ]; then
export LEADER=0
./lib/ClientDriverGo -maddr=server1 -mport=11083 -p=8 -e=false -smp=true
#elif [ "$(hostname)" == "node12" ]; then
# export LEADER=1
# ./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
#elif [ "$(hostname)" == "node13" ]; then
# export LEADER=1
# ./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
#elif [ "$(hostname)" == "node14" ]; then
# export LEADER=1
# ./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
#elif [ "$(hostname)" == "node15" ]; then
# export LEADER=1
# ./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
#elif [ "$(hostname)" == "node16" ]; then
# export LEADER=1
# ./lib/ClientDriverGo -maddr=server1 -mport=8086 -p=8 -e=false -smp=true
else
echo "Invalid client script (check node addresses in script?)"
fi