Skip to content

Commit 56b26db

Browse files
committed
clean up the readme
1 parent c749086 commit 56b26db

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ use
4242
Once the script disconnects DZ, it will not automatically reconnect it, as it has no way to test if
4343
DZ is back or not short of switching the validator to a potentially broken configuration.
4444

45+
When this script disconnects DZ, it does so by issuing `ip link set doublezero0 down` command.
46+
To reenable DZ after it was disconnected, call `ip link set doublezero0 up` and restart the
47+
monitoring service.
48+
4549
## For edge filtration mode
4650

4751
use

config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Path to the admin RPC socket of the validator
1616
ADMIN_RPC_PATH = "/home/sol/ledger/admin.rpc"
1717

18-
# Parameters you should probably not tune
18+
# Parameters below you should probably not tune
1919

2020
# Table to create in nftables
2121
NFT_TABLE = "dz_mon"
@@ -24,3 +24,7 @@
2424
# Minimal stake of node for us to care about it
2525
# Setting this higher reduces overheads of monitoring
2626
MIN_STAKE_TO_CARE = LAMPORTS_PER_SOL * 50000
27+
28+
# Amount of time to collect statistics after startup before
29+
# enabling the checking logic
30+
WARMUP_PERIOD = NODE_REFRESH_INTERVAL_SECONDS * 4

monitor_ibrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def decision(self) -> None:
184184
Goes over the connections ensuring we are using the "best" one.
185185
"""
186186
# sleep before truly starting this task so we have data to work with
187-
await asyncio.sleep(NODE_REFRESH_INTERVAL_SECONDS * 4)
187+
await asyncio.sleep(WARMUP_PERIOD)
188188
while True:
189189
await asyncio.sleep(PASSIVE_MONITORING_INTERVAL_SECONDS)
190190

0 commit comments

Comments
 (0)