-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eichhorl/monitor-last-cup' into 'master'
feat(consensus): CON-1063 Persist ECDSA key monitoring metric across upgrades Erroneous threshold public key changes are monitored in the orchestrator by comparing the keys of a CUP with those of the previous CUP. If a key was changed or deleted, the corresponding metric is incremented, thus raising an alert. However, this doesn't work for the last CUP before an upgrade: As the orchestrator typically shuts down immediately after inspecting the last CUP before an upgrade, the error metric is reset before it can be scraped. In this MR we persist the result of comparing the last two CUPs in the orchestrator's data directory. After restart, we initialize the metric with the persisted result and thus guarantee that the alert is raised correctly. Metrics of keys that haven't changed in the last CUP are reset to 0, as we assume that the alert was already raised. In order to not raise false alarms after membership changes, we reset the metric once a node is unassigned. See merge request dfinity-lab/public/ic!13126
- Loading branch information
Showing
4 changed files
with
151 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.