-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add a node-specific ip echo service to remove dependency on ifconfig.co #4137
Conversation
af1457c
to
1ae4bc2
Compare
Codecov Report
@@ Coverage Diff @@
## master #4137 +/- ##
========================================
- Coverage 77.8% 77.6% -0.2%
========================================
Files 164 167 +3
Lines 28033 28010 -23
========================================
- Hits 21816 21758 -58
- Misses 6217 6252 +35 |
This is a step in the right direction: inter-node routes may have to be sensitive to the infra between them. At some point we may have to bite the bullet and do STUN/TURN/WebRTC something? What's the strategy for this use case: 2 nodes in a NAT form a network, they each look like 192.168.1. to each other, even though they want to be a public cluster. 3rd node from outside that network can't see any of their ports? |
Yeah I think so, but also not super eager to open up that box. Expanding a node's ContactInfo to support multiple IP addresses seems like a nice future improvement too.
We use this mainly for max TPS testing when we want to ensure all nodes are staying within the cloud provider's local interconnect to avoid network ingress fees that are incurred when using the public IP address. They don't want to be a public cluster, nobody else should attach to the cluster. I think I failed to describe this well above :) |
I thought about that possibility, but determining route-ability to a peer might be no fun.
I think I missed this part: how does the bootstrap leader find himself? |
It needs to be told. By default it's 127.0.0.1: Line 196 in f9c0930
and in a solana/net/remote/remote-node.sh Line 87 in f9c0930
|
* build(deps): bump thiserror from 2.0.6 to 2.0.7 Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.6 to 2.0.7. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](dtolnay/thiserror@2.0.6...2.0.7) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update all Cargo files --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Problem
--public-address
flag to solana-{fullnode,replicator,gossip} is annoying and error prone. Why does it exist again? Oh, because we use ipconfig.co to figure a node's public IP address.Summary of Changes
Fixes #936 #4095 #4100