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

feat: EXC-1787: Penalize canisters at the end of the round #2601

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

berestovskyy
Copy link
Contributor

@berestovskyy berestovskyy commented Nov 13, 2024

The logic of penalizing canisters for full execution and distributing the priority across the subnet has been moved to the end of the round. This change is necessary for priority-based eviction.

Newly created canisters join the first execution round with an accumulated priority of zero, which breaks two existing tests, but is not a practical issue. To compensate for this, during the reset round, we set the accumulated priority to the canister's compute allocation instead of the default zero priority.

There are also a few minor optimizations.

@github-actions github-actions bot added the feat label Nov 13, 2024
@berestovskyy berestovskyy marked this pull request as ready for review November 14, 2024 09:45
@berestovskyy berestovskyy requested a review from a team as a code owner November 14, 2024 09:45
The logic of penalizing canisters for full execution and distributing
the priority across the subnet has been moved to the end of the round.
This change is necessary for priority-based eviction.

Newly created canisters join the first execution round with
an accumulated priority of zero, which breaks two existing tests,
but is not a practical issue. To compensate for this, during the reset
round, we set the accumulated priority to the canister's compute
allocation instead of the default zero priority.
@berestovskyy berestovskyy force-pushed the andriy/exc-1787-penalize-canisters-at-the-end branch from b0732b1 to 39af462 Compare November 17, 2024 08:21
@berestovskyy berestovskyy added this pull request to the merge queue Nov 17, 2024
Merged via the queue into master with commit 77164cd Nov 17, 2024
24 checks passed
@berestovskyy berestovskyy deleted the andriy/exc-1787-penalize-canisters-at-the-end branch November 17, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants