-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.py
89 lines (64 loc) · 3.46 KB
/
config.py
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
LOCAL_RUN = False # set to True if you want to run all nodes and experiments locally. Else set to False.
# If set to True, you can ignore all the IP addresses and SSH stuff below. They won't be used.
# You cannot run any of the Azure table experiments locally.
# Set the IPs below and make sure that the machine running this script can ssh into those IPs
# The SSH_IPs are IP addresses that our script can use to SSH to the machines and set things up
# The LISTEN_IPs are IP addresses on which the machine can listen on a port.
# For example, these could be private IP addresses in a VNET. In many cases, LISTEN_IPs can just the SSH_IPs.
# Azure won't let you listen on a public IP though. You need to listen on private IPs.
SSH_IP_ENDORSER_1 = "127.0.0.1"
LISTEN_IP_ENDORSER_1 = "127.0.0.1"
PORT_ENDORSER_1 = "9091"
SSH_IP_ENDORSER_2 = "127.0.0.1"
LISTEN_IP_ENDORSER_2 = "127.0.0.1"
PORT_ENDORSER_2 = "9092"
SSH_IP_ENDORSER_3 = "127.0.0.1"
LISTEN_IP_ENDORSER_3 = "127.0.0.1"
PORT_ENDORSER_3 = "9093"
SSH_IP_COORDINATOR = "127.0.0.1"
LISTEN_IP_COORDINATOR = "127.0.0.1"
PORT_COORDINATOR = "8080"
PORT_COORDINATOR_CTRL = "8090" # control plane
SSH_IP_ENDPOINT_1 = "127.0.0.1"
LISTEN_IP_ENDPOINT_1 = "127.0.0.1"
PORT_ENDPOINT_1 = "8082"
SSH_IP_ENDPOINT_2 = "127.0.0.1"
LISTEN_IP_ENDPOINT_2 = "127.0.0.1"
PORT_ENDPOINT_2 = "8082"
LISTEN_IP_LOAD_BALANCER = "127.0.0.1" # if no load balancer is available just use one endpoint (ENDPOINT_1)
# and set the LISTEN IP of that endpoint here
PORT_LOAD_BALANCER = "8082" #if no load balancer is available just use one endpoint (ENDPOINT_1)
# and set the PORT of that endpoint here
SSH_IP_CLIENT = "127.0.0.1" # IP of the machine that will be running our workload generator.
# If you are going to be running the reconfiguration experiment, set the backup endorsers
SSH_IP_ENDORSER_4 = "127.0.0.1"
LISTEN_IP_ENDORSER_4 = "127.0.0.1"
PORT_ENDORSER_4 = "9094"
SSH_IP_ENDORSER_5 = "127.0.0.1"
LISTEN_IP_ENDORSER_5 = "127.0.0.1"
PORT_ENDORSER_5 = "9095"
SSH_IP_ENDORSER_6 = "127.0.0.1"
LISTEN_IP_ENDORSER_6 = "127.0.0.1"
PORT_ENDORSER_6 = "9096"
# If you are going to be running the SGX experiment on SGX machines, set the SGX endorsers
SSH_IP_SGX_ENDORSER_1 = "127.0.0.1"
LISTEN_IP_SGX_ENDORSER_1 = "127.0.0.1"
PORT_SGX_ENDORSER_1 = "9091"
SSH_IP_SGX_ENDORSER_2 = "127.0.0.1"
LISTEN_IP_SGX_ENDORSER_2 = "127.0.0.1"
PORT_SGX_ENDORSER_2 = "9092"
SSH_IP_SGX_ENDORSER_3 = "127.0.0.1"
LISTEN_IP_SGX_ENDORSER_3 = "127.0.0.1"
PORT_SGX_ENDORSER_3 = "9093"
# Set the PATHs below to the folder containing the nimble executables (e.g. "/home/user/nimble/target/release")
# wrk2 executable, and the directory where the logs and results should be stored.
# We assume all of the machines have the same path.
NIMBLE_PATH = "/home/user/nimble"
NIMBLE_BIN_PATH = NIMBLE_PATH + "/target/release"
WRK2_PATH = NIMBLE_PATH + "/experiments/wrk2"
OUTPUT_FOLDER = NIMBLE_PATH + "/experiments/results"
# Set the SSH user for the machines that we will be connecting to.
SSH_USER = "user" # this is the username in the machine we'll connect to (e.g., user@IP)
SSH_KEY_PATH = "/home/user/.ssh/id_rsa" # this is the path to private key in the current machine where you'll run this script
# To use Azure storage, you need to set the STORAGE_ACCOUNT_NAME and STORAGE_MASTER_KEY environment variables
# with the corresponding values that you get from Azure.