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: Updating SLA-Breached evaluation periods #1398

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Conversation

truggeriaws
Copy link
Contributor

Problem

We are observing that upon resolution of npmjs replica lag, the SLA-Breached alarm triggers during the period of time where the application consumes the updates from the backlog. The alarm is self resolving as there is no issue with the backend.

Solution

Update the evaluation period from 2 (10 minutes) to 4 (20 minutes) to allow for the system to catch up before reporting an alarm.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@truggeriaws truggeriaws self-assigned this Apr 22, 2024
@@ -599,7 +599,7 @@ export class NpmJs implements IPackageSource {
`Runbook: ${RUNBOOK_URL}`,
].join('\n'),
comparisonOperator: ComparisonOperator.GREATER_THAN_THRESHOLD,
evaluationPeriods: 2,
evaluationPeriods: 4,
Copy link

Choose a reason for hiding this comment

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

In order to make a similar functional change, I would just have to update this parameter, correct? Everything else is just computer-updated or typo fixes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct. There's lots of snapshot tests in the test suite - this was my attempt to update them; although, I think those changes were actually unnecessary.

Signed-off-by: github-actions <github-actions@github.com>
@cdklabs-automation cdklabs-automation added this pull request to the merge queue Apr 22, 2024
Merged via the queue into main with commit 181ee7d Apr 22, 2024
6 checks passed
@cdklabs-automation cdklabs-automation deleted the followerAlarm branch April 22, 2024 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants