Skip to content

Commit

Permalink
localnet: fix flakiness (#2684)
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
alessandrod authored Aug 21, 2024
1 parent 77b4d13 commit d852dfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/localnet-sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d852dfc

Please sign in to comment.