[risk=low][RW-14558] Set all duration+alignment windows to (23h30m + 1 hr) #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is some configuration difference between Test/Local and Staging/Stable (I haven't tried Prod/Preprod) which made it impossible to apply the Test alerting rules to Staging/Stable: cannot set duration above 23h30m. Oddly, this appears to be a GCP-wide restriction, and I can't figure out why it's allowed in Test!
For example, I see this error on Staging when I try to apply workbench-terraform-modules v0.4.6, but not in Test.
The reason we want a duration of ~ 25 hours is to avoid false positives for daily runs: we don't want to trigger if we see a completion signal at 11:01 one day but 11:03 the next. But looking further, it's not only the duration which matters. It's the duration plus an alignmentPeriod. We can satisfy the rule and our requirement in all environments (confirmed) by setting a duration of 23h30m (84600 seconds) and an alignmentPeriod of 1h (3600 s) for a total of 24h30m.
https://cloud.google.com/monitoring/alerts/concepts-indepth
Crons which run more frequently than daily are not affected by this, so they are not updated here.