Browse Source

localnet: fix flakiness (#2684)

localnet is flaky: https://buildkite.com/anza/agave/builds/9606#019165a1-af5f-4bfa-b329-3c0adba9dc46

It seems that nodes start with overlapping ports and then solana-gossip
can't find them. Avoid the issue by using larger port ranges...
Alessandro Decina 1 year ago
parent
commit
d852dfc948
1 changed files with 4 additions and 4 deletions
  1. 4 4
      ci/localnet-sanity.sh

+ 4 - 4
ci/localnet-sanity.sh

@@ -76,18 +76,18 @@ nodes=(
   "multinode-demo/bootstrap-validator.sh \
     --no-restart \
     --init-complete-file init-complete-node0.log \
-    --dynamic-port-range 8000-8050"
+    --dynamic-port-range 8000-8200"
   "multinode-demo/validator.sh \
     --no-restart \
-    --dynamic-port-range 8050-8100
+    --dynamic-port-range 8200-8400
     --init-complete-file init-complete-node1.log \
     --rpc-port 18899"
 )
 
 if [[ extraNodes -gt 0 ]]; then
   for i in $(seq 1 $extraNodes); do
-    portStart=$((8100 + i * 50))
-    portEnd=$((portStart + 49))
+    portStart=$((8400 + i * 200))
+    portEnd=$((portStart + 200))
     nodes+=(
       "multinode-demo/validator.sh \
         --no-restart \