Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bootstrap config for LAN DHT #9884

Open
BigLep opened this issue May 18, 2023 · 2 comments
Open

add bootstrap config for LAN DHT #9884

BigLep opened this issue May 18, 2023 · 2 comments

Comments

@BigLep
Copy link
Contributor

BigLep commented May 18, 2023

With the next go-libp2p release it is gonna be smarter and sequence dials by how usefull they are meant to be.
This means if LAN addresses are found it will sequence thoses first. Right now we publish all addresses to all DHT, so LAN addresses can be found on the WAN DHT slowing down this new more efficient dialler, to fix this go-libp2p-kad-dht is gonna only publish relevent addresses to the relevent DHTs (see libp2p/go-libp2p-kad-dht#839).
Some peoples run IPFS cluster on Virtual Private Clouds, this is a network in LAN space which all of your machine goes. Some cloud platform that tries to vendor lock in users do not count IP transit cost if traffic goes through this network instead of the exact same traffic going over the public IPs of the VMs. Right now running multiple IPFS nodes inside the same VPC will have the machines announce their local VPC addresses on the public DHT, so they can find each other in the VPC, saving on cost and having higher performance between all of thoses nodes, if we stop having private IPs on the public DHT supported this means they will need to rely on the LAN DHT instead, which isn't working on theses network right now due to the impossibility of using MDNS for bootstrap (no multicast).

We should add a LANBootstrap list, or make this configurable per router, so users in the thoses networks can setup their own LAN dht, as well as guide users who uses LAN networks without multicast to these options.

Suggestion is to have a bootstrap list per router.

@BigLep BigLep converted this from a draft issue May 18, 2023
@Jorropo Jorropo moved this to 🥞 Todo in IPFS Shipyard Team May 19, 2023
@Jorropo Jorropo assigned Jorropo and unassigned Jorropo May 19, 2023
@BigLep BigLep mentioned this issue Jun 5, 2023
@BigLep BigLep changed the title add bootstrap config for lan DHT add bootstrap config for LAN DHT Jul 6, 2023
@BigLep
Copy link
Contributor Author

BigLep commented Jul 6, 2023

2023-07-06 maintainer convesation: we agree this is good/reasonable todo. That said, we are ok to ship a go-libp2p update without this as things will "still work" :)

@BigLep BigLep mentioned this issue Jul 21, 2023
@Jorropo
Copy link
Contributor

Jorropo commented Jul 27, 2023

We agreed to release without this to unblock 0.22, as a workaround you can put your LAN dht bootstraps in the WAN's dht bootstrap and due to multiple layers of callbacks and events it works out.
This is not a great workflow so we would want to fix this, not have this workaround become permanent.

@Jorropo Jorropo removed their assignment Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🥞 Todo
Development

No branches or pull requests

2 participants