Skip to content

Commit

Permalink
Org update
Browse files Browse the repository at this point in the history
  • Loading branch information
axelniklasson committed May 23, 2019
1 parent ec1807d commit 29b022f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Code for running both centralized and distributed BFTList clients. Note that thi

## Setup
```
git clone git@github.com:practicalbft/BFTList-client.git && cd BFTList-client
git clone git@github.com:sspbft/BFTList-client.git && cd BFTList-client
chmod +x *.sh
python3.7 -m venv env
source ./env/bin/activate
Expand All @@ -24,7 +24,7 @@ Make sure that BFTList is running either locally or on PlanetLab and simply supp
```

## Running clients distributed
Run the following on each PlanetLab node, assuming that all repos are bootstrapped correctly and residing in `/practicalbft`.
Run the following on each PlanetLab node, assuming that all repos are bootstrapped correctly and residing in `/sspbft`.
```
./run_clients_distributed.sh [absolute_path_to_hosts_file] [nbr_of_clients] [reqs_per_client]
```
Expand Down
2 changes: 1 addition & 1 deletion run_clients_distributed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cat $1 | awk "NR % $2 == 0" | tr ',' ' ' | awk '{print $1","$2}' | while read li
do
ID=$(echo $line | tr ',' ' ' | awk '{print $1}')
HOST=$(echo $line | tr ',' ' ' | awk '{print $2}')
CMD="cd /practicalbft/BFTList-client && source ./env/bin/activate && HOSTS_PATH=/practicalbft/BFTList/conf/hosts.txt python client/client.py $ID $3 $4 $2 $5"
CMD="cd /sspbft/BFTList-client && source ./env/bin/activate && HOSTS_PATH=/sspbft/BFTList/conf/hosts.txt python client/client.py $ID $3 $4 $2 $5"
echo $CMD
echo "Launcher ==> Launching client on ${HOST}"
ssh -o StrictHostKeyChecking=no -l ${SLICE:-$DEF_SLICE} -i ${SSH_KEY:-$DEF_SSH_KEY} ${HOST} ${CMD} &> /dev/null &
Expand Down
2 changes: 1 addition & 1 deletion run_clients_distributed_aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cat $1 | awk "NR % $2 == 0" | tr ',' ' ' | awk '{print $1","$2}' | while read li
do
ID=$(echo $line | tr ',' ' ' | awk '{print $1}')
HOST=$(echo $line | tr ',' ' ' | awk '{print $2}')
CMD="cd /practicalbft/BFTList-client && source ./env/bin/activate && HOSTS_PATH=/practicalbft/BFTList/conf/hosts.txt python client/client.py $ID $3 $4 $2 $5"
CMD="cd /sspbft/BFTList-client && source ./env/bin/activate && HOSTS_PATH=/sspbft/BFTList/conf/hosts.txt python client/client.py $ID $3 $4 $2 $5"
echo $CMD
echo "Launcher ==> Launching client on ${HOST}"
ssh -o StrictHostKeyChecking=no -l ${SLICE:-$DEF_SLICE} -i ${SSH_KEY:-$DEF_SSH_KEY} ${HOST} ${CMD} &> /dev/null &
Expand Down

0 comments on commit 29b022f

Please sign in to comment.