-
Notifications
You must be signed in to change notification settings - Fork 332
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(MR): [MR-649] Roll out best-effort calls to the first few subnets #3816
Merged
alin-at-dfinity
merged 10 commits into
master
from
alin/MR-649-partially-roll-out-best-effort-calls
Feb 7, 2025
Merged
feat(MR): [MR-649] Roll out best-effort calls to the first few subnets #3816
alin-at-dfinity
merged 10 commits into
master
from
alin/MR-649-partially-roll-out-best-effort-calls
Feb 7, 2025
Conversation
This file contains 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
Replace the on-off flag with an enum of 4 progressive rollout stages: * Stage 0: Trap on related API calls; and reject best-effort requests when routing (status quo). * Stage 1: Silently ignore `ic0_call_with_best_effort_response()` calls, falling back to guaranteed response calls; and reject best-effort requests when routing. * Stage 2: On system subnets, silently ignore `ic0_call_with_best_effort_response()` calls, falling back to guaranteed response calls; and reject best-effort requests that should be routed to system subnets. * Stage 3: Fully enable API calls; always route best-effort requests. Rollbacks (incremental or direct) are also supported, but it's probably a bad idea to roll back to stage 0, as any canisters already using best-effort calls would break. Badly.
Co-authored-by: stiegerc <[email protected]>
…e rolling out to specific subnets only.
derlerd-dfinity
approved these changes
Feb 6, 2025
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.
Thank you. LGTM.
Base automatically changed from
alin/MR-649-no-best-effort-calls-to-system-subnets
to
master
February 7, 2025 08:36
List a few subnets in the BestEffortResponsesFeature::SpecificSubnets under the FeatureFlags default. This will have the ic0_call_with_best_effort_response() API call on these subnets actually set a deadline on the calls being constructed. And allow best-effort requests to be routed between these subnets only. Also reduce the default subnet_message_memory_capacity on all subnets from 25 GB to 15 GB, to make place for a potential 5 GB of best-effort messages plus a potential 1 M callbacks. Apart from brief spikes, usually associated with heartbeat / global timer storms, subnet message memory usage is virtually always in the low single digit GBs, so the reduction of the limit will make no practical difference.
2e80716
to
0fc745a
Compare
michael-weigelt
approved these changes
Feb 7, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
List a few subnets in the BestEffortResponsesFeature::SpecificSubnets under the FeatureFlags default. This will have the ic0_call_with_best_effort_response() API call on these subnets actually set a deadline on the calls being constructed. And allow best-effort requests to be routed between these subnets only.
Also reduce the default subnet_message_memory_capacity on all subnets from 25 GB to 15 GB, to make place for a potential 5 GB of best-effort messages plus a potential 1 M callbacks. Apart from brief spikes, usually associated with heartbeat / global timer storms, subnet message memory usage is virtually always in the low single digit GBs, so the reduction of the limit will make no practical difference.