-
Notifications
You must be signed in to change notification settings - Fork 173
/
config_security.py
24 lines (20 loc) · 957 Bytes
/
config_security.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
NS=[8]
NODES=['10.0.0.{}'.format(x) for x in range(3,36)]
CLIENTS=['10.0.0.{}'.format(x) for x in range(85,100)]
PORT='8545'
#THREADS=[2,4,8,16,32]
#RATES=[1,2,4,8,12,16]
THREADS=[32]
RATES=[8]
HOME_DIR='/users/dinhtta/anh/blockchain-perf/benchmark/parity'
CHAIN_DATA='/data/dinhtta/chain-data'
LOG_DIR='/data/dinhtta/logs/parity'
PARITY_EXE='/users/dinhtta/.cargo/bin/parity'
CLIENT_LOG='logs_security'
CLIENT_DRIVER='start_ycsb_client.sh'
enode_command = 'curl --data \'{{"jsonrpc": "2.0", "method": "parity_enode", "params":[], "id": 0}}\' -H "Content-Type: application/json" -X POST {}:{}'
add_peer = 'curl --data \'{{"jsonrpc": "2.0", "method": "parity_addReservedPeer", "params":["{}"], "id": 0}}\' -H "Content-Type: application/json" -X POST {}:{}'
kill_command = 'ssh -o StrictHostKeyChecking=no dinhtta@{} "killall -KILL {}"'
ssh_command = 'ssh -o StrictHostKeyChecking=no dinhtta@{} {}'
partition_cmd = './partition.sh {} {} {} &'
TIMEOUT=150