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

Blockfetch improvements needed before KeepAlive client can be enabled. #2441

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Jul 20, 2020

Fixes #2434 #2433 and #2430 which are required for #1416.

@karknu karknu force-pushed the karknu/blockfetch_imp branch from bec9f03 to 9a81995 Compare July 20, 2020 08:59
@karknu karknu requested a review from coot July 20, 2020 10:51
@karknu karknu marked this pull request as ready for review July 20, 2020 10:54
Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karknu karknu force-pushed the karknu/blockfetch_imp branch from 9a81995 to 7ca3a39 Compare July 20, 2020 14:06
@karknu karknu requested a review from nfrisby July 21, 2020 13:42
@karknu karknu force-pushed the karknu/blockfetch_imp branch from 7a91175 to 13e8580 Compare July 21, 2020 13:53
@karknu karknu force-pushed the karknu/blockfetch_imp branch from 13e8580 to 76f1297 Compare July 21, 2020 16:50
karknu added 3 commits July 21, 2020 19:21
Enforce a min low watermark to ensure that blockfetch can do pipelining.
Constantly re-evaluating the the blockfetch descision logic is
expensive. Limit it to 100Hz.
Implement smooth switching from slower to faster peers by
temporarily ignoring the concurrency limit for faster peers.
This lets faster peers starve out slower peers and makes it possible
to switch peers without first having to wait for all outstanding
requests to the slower peers to finish.
@karknu karknu force-pushed the karknu/blockfetch_imp branch from 76f1297 to a097f80 Compare July 21, 2020 17:22
@karknu
Copy link
Contributor Author

karknu commented Jul 21, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 21, 2020

@iohk-bors iohk-bors bot merged commit 03fb9b1 into master Jul 21, 2020
@iohk-bors iohk-bors bot deleted the karknu/blockfetch_imp branch July 21, 2020 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit the rate we make new blockfetch descisions
3 participants