This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Req/res optimization for statement distribution #2803
Merged
Merged
Changes from 60 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
857883b
Wip
eskimor 4f11772
Merge branch 'master' into rk-req-res-runtime
eskimor 7dc3c40
Increase proposer timeout.
eskimor 7f428aa
WIP.
eskimor c045773
Better timeout values now that we are going to be connected to all no…
eskimor fe1f0a1
Better and more consistent sizes.
eskimor 8a0b22f
Introduce statement fetching request.
eskimor 86b147c
WIP
eskimor d68d646
Statement cache retrieval logic.
eskimor 707c96b
Review remarks by @rphmeier
eskimor ded3f78
Fixes.
eskimor a64bfef
Better requester logic.
eskimor 5aa7dba
WIP: Handle requester messages.
eskimor afc7f08
Missing dep.
eskimor 10d7b8f
Fix request launching logic.
eskimor 351a0d1
Finish fetching logic.
eskimor d9b80cc
Sending logic.
eskimor 03e11ca
Redo code size calculations.
eskimor 0a57c1f
Update Cargo.lock (new dep)
eskimor 6ff978c
Merge branch 'master' into rk-req-res-runtime
eskimor f4a1748
Get request receiver to statement distribution.
eskimor ad907dc
Expose new functionality for responding to requests.
eskimor 186ab0e
Cleanup.
eskimor 77c6d8c
Responder logic.
eskimor 41243fa
Fixes + Cleanup.
eskimor 6d76bbf
Cargo.lock
eskimor 52d1a69
Whitespace.
eskimor 095f78e
Add lost copyright.
eskimor 129b0fa
Launch responder task.
eskimor ae3c492
Typo.
eskimor 49b4eae
info -> warn
eskimor 2e37f70
Typo.
eskimor c3e911a
Fix.
eskimor 98d366e
Fix.
eskimor 8118d0c
Update comment.
eskimor 3687401
Doc fix.
eskimor e3610d2
Better large statement heuristics.
eskimor f901615
Fix tests.
eskimor 8b99d30
Merge branch 'master' into rk-req-res-runtime
eskimor e66dc8b
Fix network bridge tests.
eskimor ce8e5b5
Add test for size estimate.
eskimor 12f78a1
Very simple tests that checks we get LargeStatement.
eskimor b76af99
Basic check, that fetching of large candidates is performed.
eskimor 7f2936b
More tests.
eskimor f2883ff
Merge branch 'master' into rk-req-res-runtime
eskimor 2a56490
Basic metrics for responder.
eskimor 653ea6a
More metrics.
eskimor 861e8d8
Use Encode::encoded_size().
eskimor ba8b7fb
Some useful spans.
eskimor 42945ce
Get rid of redundant metrics.
eskimor 2fcde8f
Don't add peer on duplicate.
eskimor 6acc8ab
Merge branch 'master' into rk-req-res-runtime
eskimor 0b51e89
Properly check hash
eskimor 606ff6b
Merge branch 'master' into rk-req-res-runtime
eskimor ca11986
Preserve ordering + better flood protection.
eskimor 3180253
Get rid of redundant clone.
eskimor 5af1636
Don't shutdown responder on failed query.
eskimor 5c4e316
Smaller fixes.
eskimor 1454d6a
Quotes.
eskimor 48cac47
Better queue size calculation.
eskimor 0f3a21c
Merge branch 'master' into rk-req-res-runtime
eskimor e506d64
A bit saner response sizes.
eskimor 25df93f
Fixes.
eskimor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What needs to happen after that 4 seconds and can it fit within the remaining two seconds?
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.
Invoking the
on_initialize, adding transactions, and thenon_finalizeof the block. 2 seconds is a bit of a squeeze, honestly.When this timeout is hit, it means that no parachain stuff will be included which probably makes the 2 seconds more acceptable.