-
Notifications
You must be signed in to change notification settings - Fork 30
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
test: CDK latency scaling alarm #8547
Conversation
Size Change: 0 B Total Size: 656 kB ℹ️ View Unchanged
|
For the latency scaling alarm, turns out we didn't need this additional endpoint to check it as our latency on the CODE env triggers the alarm very easily (possibly due to the type of instance we're using for the CODE env) The actions of the latency alarm are to scale up and down due to the alert, rather than to send notifications, so we don't need to add the SNS topic and notification endpoint to check this. I'm going to close this PR as not needed. The migration is in #8664. |
What does this change?
As part of our migration to CDK (#7614), we are migrating the latency scaling alarm (#7636). This PR tests the latency scaling alarm to test if it would be triggered correctly and that the SNS topic notifications would work (and therefore PagerDuty notifications).
Why?
We need to ensure that the latency scaling alarm would work in a production environment, as it currently does in its un-CDK-ed state.
Rather than testing completely from end to end, @akash1810 suggested creating a dedicated endpoint in our server that, when accessed with a specific header or cookie, will intentionally induce latency in our application to trigger the latency scaling alarm and test it would work in a production environment. As well as testing the alarm's behaviour, it would also allow us to test its associated actions i.e. SNS topic notifications.
Checklist:
Frontend-CODE-CriticalAlerts