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

Update UnhealthyHost Alarm #4233

Closed
3 tasks done
srtalbot opened this issue Aug 29, 2024 · 2 comments
Closed
3 tasks done

Update UnhealthyHost Alarm #4233

srtalbot opened this issue Aug 29, 2024 · 2 comments
Assignees
Labels

Comments

@srtalbot
Copy link
Contributor

srtalbot commented Aug 29, 2024

  • if one host is down, send the error message to slack.
  • If both hosts are down, send an alarm to opsgenie
  • investigate why we didn't get an error message for the high memory usage that hit our cap.
@patheard
Copy link
Member

The reason we didn't get an alarm for high memory use is because of how our alarm is configured:
https://github.com/cds-snc/forms-terraform/blob/27de887afba0ce8d80a8bceb3fe22048795781c2/aws/alarms/cloudwatch_app.tf#L26-L30

It is setup to trigger on Average memory use above 50%, and only if that average use is sustained over 4 minutes:

2 evaluation periods * 120 second period

Looking at the period we had expected this alarm to trigger, Average memory use didn't get about 40%, but Maximum memory use hit 100%:
Image

I'd recommend we switch the alarm to Maximum memory use to catch this in the future:
Image

@patheard
Copy link
Member

Alarms have all been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants