forked from CryptoManufaktur-io/consensus-deployment-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp-commands.sh
118 lines (112 loc) · 3.56 KB
/
temp-commands.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# LogCLI get logs
docker run --rm --network monitoring_network grafana/logcli:main-336e08f-amd64 query \
'{container_name="beacon",testnet="ef-phase2-premerge-12s-split-new-clients", host_node="premergetest1prysm1"}' \
--timezone=UTC \
--from="2023-03-06T16:19:00Z" \
--to="2023-03-14T15:59:00Z" \
-o raw \
--addr="http://loki:3100" \
--limit 1000000 > mylog.txt
# LogCLI get logs parallel
docker run --rm --network monitoring_network -v $PWD:/workdir grafana/logcli:main-336e08f-amd64 query \
'{container_name="beacon",testnet="ef-phase2-premerge-12s-split-new-clients", host_node="premergetest1prysm1"}' \
--timezone=UTC \
--from="2023-03-06T16:19:00Z" \
--to="2023-03-14T15:59:00Z" \
-o raw \
--addr="http://loki:3100" \
--parallel-duration="30m" \
--parallel-max-workers="1" \
--part-path-prefix="/workdir/myquery" \
--merge-parts
# Run prysm client test
docker run --rm --name ptest \
-v $PWD/testnets/efoundation/custom_config_data/test1:/custom_config_data \
prysmaticlabs/prysm-beacon-chain:latest \
--accept-terms-of-use=true \
--datadir="/beacondata" \
--genesis-state="/custom_config_data/genesis.ssz" \
--chain-config-file="/custom_config_data/config.yaml" \
--verbosity="debug" \
--min-sync-peers=1 \
--pprof \
--p2p-host-ip=127.0.0.1 \
--p2p-max-peers=2 \
--p2p-udp-port=4000 --p2p-tcp-port=4001 \
--monitoring-host=0.0.0.0 --monitoring-port=4002 \
--rpc-host=0.0.0.0 --rpc-port=4003 \
--grpc-gateway-host=0.0.0.0 \
--grpc-gateway-port=4004 \
--execution-endpoint="http://geth:8545"
# Run lighthouse client test
docker run --rm --name ltest \
-v $PWD/testnets/efoundation/custom_config_data/test1:/custom_config_data \
sigp/lighthouse:latest \
lighthouse \
--debug-level="debug" \
--datadir "/beacondata" \
--testnet-dir="/custom_config_data" \
bn \
--disable-enr-auto-update \
--enr-address=127.0.0.1 \
--enr-tcp-port=4000 \
--enr-udp-port=4000 \
--port=4000 \
--discovery-port=4000 \
--http \
--http-address 0.0.0.0 \
--http-port "4001" \
--metrics \
--metrics-address 0.0.0.0 \
--metrics-port "4002" \
--listen-address 0.0.0.0 \
--graffiti="bbb" \
--target-peers=2 \
--eth1 \
--eth1-endpoints "http://geth:8545"
# Run teku client test
docker run --rm --name ttest \
-v $PWD/testnets/efoundation/custom_config_data/test1:/custom_config_data \
consensys/teku:latest \
--network "/custom_config_data/config.yaml" \
--initial-state "/custom_config_data/genesis.ssz" \
--data-storage-mode=PRUNE \
--p2p-enabled=true \
--p2p-advertised-ip=127.0.0.1 \
--p2p-port="4000" \
--p2p-advertised-port=4000 \
--logging="debug" \
--log-destination=CONSOLE \
--log-file="/beacondata/log_outputs" \
--p2p-peer-upper-bound=2 \
--metrics-enabled=true --metrics-interface=0.0.0.0 --metrics-port="4002" \
--p2p-discovery-enabled=true \
--p2p-peer-lower-bound=1 \
--rest-api-enabled=true \
--rest-api-docs-enabled=true \
--rest-api-interface=0.0.0.0 \
--rest-api-port="4001" \
--metrics-host-allowlist="*" \
--rest-api-host-allowlist="*" \
--ee-endpoint="http://geth:8545" \
--eth1-endpoint "http://geth:8545"
# Run nimbus client test
docker run --rm --name ntest \
-v $PWD/testnets/efoundation/custom_config_data/test1:/custom_config_data \
statusim/nimbus-eth2:multiarch-latest \
--non-interactive \
--status-bar=false \
--tcp-port=4000 \
--udp-port=4000 \
--max-peers="2" \
--network="/custom_config_data" \
--graffiti="bbb" \
--log-level="debug" \
--rest --rest-port=4001 --rest-address=0.0.0.0 \
--enr-auto-update=false \
--doppelganger-detection=off \
--metrics --metrics-port=4002 --metrics-address=0.0.0.0 \
--listen-address=0.0.0.0 \
--nat="extip:127.0.0.1" \
--dump:on \
--web3-url="http://geth:8545"