-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: increase routing limits #154
Conversation
36fbef7
to
adc6960
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.
Triage note: this is waiting for results of staging A/B testing results.
Note2: test after rebase on bitswap/routing improvements
0693583
to
2ebfc5b
Compare
This is ready for testing I think |
I am seeing |
if err != nil { | ||
panic(err) | ||
} | ||
pqm.Startup() |
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.
Unless there is a need to start at some later time, or some modes of operation need a ProviderQueryQanager
that has not been started, then I think New
should also perform the startup.
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.
Doing so prevents problems where calling Startup
is missed.
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.
This builds off of ipfs/boxo#641 and at the moment has two notable changes from the current setup:
Without some experimentation it's hard to tell what these numbers should be or what other sorts of heuristics we might want to use here. I don't think the ones we have are optimal, but for now figured we'd see if mostly tweaking the numbers helps at all. It's also not clear that we'd want both DHT and IPNI lookups to be rate-limited in the same way and right now they're joined together.
We should try this out on a staging branch and see what the impact looks like.