File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 4242Once the script disconnects DZ, it will not automatically reconnect it, as it has no way to test if
4343DZ 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
4751use
Original file line number Diff line number Diff line change 1515# Path to the admin RPC socket of the validator
1616ADMIN_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
2121NFT_TABLE = "dz_mon"
2424# Minimal stake of node for us to care about it
2525# Setting this higher reduces overheads of monitoring
2626MIN_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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments