We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7503f4f + d371975 commit d5eb4a4Copy full SHA for d5eb4a4
1 file changed
gateway/dstack-app/builder/entrypoint.sh
@@ -43,7 +43,11 @@ if [[ ! "$NODE_ID" =~ ^[0-9]+$ ]]; then
43
exit 1
44
fi
45
46
-SYNC_ENABLED=$([ -z "$BOOTNODE_URL" ] && echo "false" || echo "true")
+# Sync is always enabled when NODE_ID > 0. Peer auto-discovery works via incoming
47
+# sync connections: when another node syncs to us, we learn about it automatically
48
+# through WaveKV's handle_sync, which auto-adds the sender as a peer.
49
+# BOOTNODE_URL is optional — it speeds up initial discovery but is not required.
50
+SYNC_ENABLED=$([ "$NODE_ID" -gt 0 ] && echo "true" || echo "false")
51
52
echo "WG_IP: $WG_IP"
53
echo "WG_RESERVED_NET: $WG_RESERVED_NET"
0 commit comments