-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremotes.sh
90 lines (62 loc) · 4.93 KB
/
remotes.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#! /usr/bin/bash
# run this to update code on remote servers
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
# kill any python3 processes to ensure no ports are taken
ssh [email protected] "pkill python3"
ssh [email protected] "pkill python3"
ssh [email protected] "pkill python3"
ssh [email protected] "pkill python3"
ssh [email protected] "python3 raftarch/remote_gateway.py"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.1:5001 10.10.1.2:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.2:5001 10.10.1.1:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.3:5001 10.10.1.1:5001 10.10.1.2:5001 &"
# for interactive use
ssh [email protected] "python3 raftarch/client.py"
# benchmark no failures
ssh [email protected] "python3 raftarch/no_failures.py"
scp [email protected]:~/no_failure.csv benchmarks_remote/
# benchmark with failures (including leader) at 10s
ssh [email protected] "python3 raftarch/leader_failure.py"
scp [email protected]:~/results_leader_failure.csv benchmarks_remote/
# 2 clusters
ssh [email protected] "python3 raftarch/remote_gateway.py 2"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.1:5001 10.10.1.2:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.2:5001 10.10.1.1:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.3:5001 10.10.1.1:5001 10.10.1.2:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.1:5002 10.10.1.2:5002 10.10.1.3:5002 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.2:5002 10.10.1.1:5002 10.10.1.3:5002 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.3:5002 10.10.1.1:5002 10.10.1.2:5002 &"
# benchmark no failures
ssh [email protected] "python3 raftarch/no_failures.py"
scp [email protected]:~/no_failure.csv benchmarks_remote/no_failure_2_clusters.csv
# benchmark with failures (including leader) at 10s
ssh [email protected] "python3 raftarch/leader_failure.py"
scp [email protected]:~/results_leader_failure.csv benchmarks_remote/leader_failure_2_clusters.csv
# after locking update...
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
ssh [email protected] "cd raftarch && git pull origin master"
# 2 clusters with locking
ssh [email protected] "python3 raftarch/remote_gateway.py 2"
# for killing
ssh [email protected] "pkill python3"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.1:5001 10.10.1.2:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.2:5001 10.10.1.1:5001 10.10.1.3:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.3:5001 10.10.1.1:5001 10.10.1.2:5001 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.1:5002 10.10.1.2:5002 10.10.1.3:5002 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.2:5002 10.10.1.1:5002 10.10.1.3:5002 &"
ssh [email protected] "python3 raftarch/launch_db_node.py http://10.10.1.4:8000 10.10.1.3:5002 10.10.1.1:5002 10.10.1.2:5002 &"
# benchmark no failures
ssh [email protected] "python3 raftarch/benchmarks.py"
scp [email protected]:~/benchmarks.csv benchmarks_remote/with_txn_no_failure_2_clusters.csv
ssh [email protected] "python3 raftarch/benchmarks.py 2"
scp [email protected]:~/benchmarks_threaded_2.csv benchmarks_remote/multithreaded_with_txn_no_failure_2_clusters.csv
# benchmark with failures (including leader) at 10s (with 2 threads)
ssh [email protected] "python3 raftarch/benchmarks.py"
scp [email protected]:~/benchmarks.csv benchmarks_remote/with_txn_leader_failure_2_clusters.csv
ssh [email protected] "python3 raftarch/benchmarks.py 2"
scp [email protected]:~/benchmarks_threaded_2.csv benchmarks_remote/multithreaded_with_txn_leader_failure_2_clusters.csv