-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
feat: DHT Reprovide Sweep #10834
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
base: master
Are you sure you want to change the base?
feat: DHT Reprovide Sweep #10834
Conversation
c97cba6
to
323e72d
Compare
Gateway Conformance test failing even without any new code (see here). Either test or new dependencies broken. |
fd4d683
to
9edc312
Compare
bb2c8a3
to
919ea8f
Compare
🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Question about
Purge
function. - Maybe some missed errors.
Otherwise looks good.
a9bbe01
to
7c400c2
Compare
7c400c2
to
0718927
Compare
0d98190
to
dc2bb67
Compare
ce7134c
to
1f668b9
Compare
Current status:
|
{ | ||
name: "BurstProvider", | ||
reprovide: true, | ||
apply: func(n *harness.Node) { | ||
n.SetIPFSConfig("Reprovider.Sweep.Enabled", false) | ||
}, | ||
}, | ||
{ | ||
name: "SweepingProvider", | ||
reprovide: false, | ||
apply: func(n *harness.Node) { | ||
n.SetIPFSConfig("Reprovider.Sweep.Enabled", true) | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I tried adding tests with Routing.AcceleratedDHTClient
set to true, but they are timing out. I didn't investigate why since it seems out of the scope of this PR to add/debug tests related to the Accelerated DHT client.
Integrate the DHT
SweepingReprovider
as opt-in feature in Kubo.Note that the
SweepingReprovider
cannot make use of the accelerated DHT client due to kubo interfaces restrictions.Initial integration checklist:
reprovider.Reprovider
toIpfsNode
SweepingReprovider
dual.DHT
fullrt.FullRT
SweepingReprovider
options in kubo configProvide()
with the appropriate method fromreprovider.Reprovider
(see interface) ifReprovide Sweep
is enabled.IpfsNode.Provider
andIpfsNode.Reprovider
are constructed (only 1 is needed)Provider
instead ofReprovider
??