-
Notifications
You must be signed in to change notification settings - Fork 211
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
[Merged by Bors] - collect latency and failure from every request and adjust latency based on response size #5601
[Merged by Bors] - collect latency and failure from every request and adjust latency based on response size #5601
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #5601 +/- ##
=========================================
+ Coverage 79.6% 79.8% +0.1%
=========================================
Files 270 270
Lines 27186 27232 +46
=========================================
+ Hits 21667 21733 +66
+ Misses 3973 3959 -14
+ Partials 1546 1540 -6 ☔ View full report in Codecov by Sentry. |
@ivan4th could you please review the change, i think it may somewhat conflict with your streaming patch. if you have suggestion how to make it less conflicting, i can adjust. i will take a look later at streaming pr |
bors merge |
…ed on response size (#5601) closes: #5265 previous implementation was incomplete and had two flaws. it will not account for the difference in response size, larger payloads will naturally take more time to complete. it would skew peer selection logic towards peers that are slower to respond. the other flaw was to use only hs/1 protocol for measuing latency, often peers are blocked on ax/1 (where we get a collection of ids, which is large and slow) and lack of prioritization there may cause inefficient retries.
@dshulyak in #5562, an additional set of streaming fetcher methods are added which use new |
Build failed: |
bors merge |
…ed on response size (#5601) closes: #5265 previous implementation was incomplete and had two flaws. it will not account for the difference in response size, larger payloads will naturally take more time to complete. it would skew peer selection logic towards peers that are slower to respond. the other flaw was to use only hs/1 protocol for measuing latency, often peers are blocked on ax/1 (where we get a collection of ids, which is large and slow) and lack of prioritization there may cause inefficient retries.
Pull request successfully merged into develop. Build succeeded:
|
closes: #5265
previous implementation was incomplete and had two flaws. it will not account for the difference in response size, larger payloads will naturally take more time to complete. it would skew peer selection logic towards peers that are slower to respond.
the other flaw was to use only hs/1 protocol for measuing latency, often peers are blocked on ax/1 (where we get a collection of ids, which is large and slow) and lack of prioritization there may cause inefficient retries.