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
calculate network size dynamically #512
Comments
we can probably start by just keeping track of how many distinct node ids we've heard from in the last... say, 10 minutes? and use that in our calculation |
ah but then we should probably also make nodes heartbeat on the network every minute or so so that quiet nodes don't disappear from the calculation |
the heartbeat could contain info about "here is the capacity that I offer the network" - then we can:
|
fascinating problem - how does K8s do this? Do kubelets heartbeat back to apiserver? |
Via etcd I believe yes |
This should not be a problem once we switch from GossipSub to direct calls for job negotiation |
I am closing this task as we shouldn't solve it since we will drop adding artificial latencies before bidding on jobs |
ETA: 2023Q1
new performance improvements require nodes to know a lower bound on the size of the network, currently we hard-code this in #511 but we need to calculate this dynamically. Until we fix this, big networks won't be fast again (since I just changed that number from a hard-coded 250 to a hard-coded 3)
The text was updated successfully, but these errors were encountered: