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

fix: EXC-1765: Fix canister_age metric #3443

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

berestovskyy
Copy link
Contributor

@berestovskyy berestovskyy commented Jan 14, 2025

The scheduler_canister_age_rounds metric tracks the difference between the current round and the round in which the canister last fully executed. By default, this last executed round is set to zero for newly created canisters. Consequently, the canister_age metric for these new canisters abruptly increases to the current round, which can be in the billions.

This PR addresses this issue by excluding canisters with a zero 'last executed round' from the canister_age metric observations.

Furthermore, this PR increases the upper bound of the metric's range to 5000 rounds.

@github-actions github-actions bot added the chore label Jan 14, 2025
@berestovskyy berestovskyy changed the title chore: EXC-1765: Fix canister_age metric fix: EXC-1765: Fix canister_age metric Jan 14, 2025
@github-actions github-actions bot added fix and removed chore labels Jan 14, 2025
@berestovskyy berestovskyy marked this pull request as ready for review January 14, 2025 23:00
@berestovskyy berestovskyy requested a review from a team as a code owner January 14, 2025 23:00
Copy link
Member

@dsarlis dsarlis left a comment

Choose a reason for hiding this comment

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

The scheduler_canister_age_rounds metric tracks the difference between the current round and the round in which the canister last fully executed. By default, this last executed round is set to zero for newly created canisters. Consequently, the canister_age metric for these new canisters abruptly increases to the current round, which can be in the billions.

This PR also increases the metric range up to 5000 rounds.

Did you perhaps forget to mention what is the actual fix to the problem described?

@berestovskyy berestovskyy added this pull request to the merge queue Jan 16, 2025
Merged via the queue into master with commit 2f6fcec Jan 16, 2025
38 checks passed
@berestovskyy berestovskyy deleted the andriy/exc-1765-fix-canister-age branch January 16, 2025 22:36
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