Increase max resolution for jitter from 1min to 2min
Description
The goal of this PR is to enable the jitter code path here: https://github.com/getsentry/snuba/blob/40d2510c1ab598ba501586688b77189757089cd5/snuba/subscriptions/scheduler.py#L118-L135 for queries with a resolution up to 30 minutes.
Here's what the load profile on metric alert subscriptions looks like that we're trying to fix: https://app.datadoghq.com/dashboard/byg-ici-a72/snuba-subscriptions?fromUser=true&fullscreen_end_ts=1714765439441&fullscreen_paused=false&fullscreen_refresh_mode=sliding&fullscreen_section=overview&fullscreen_start_ts=1714751039441&fullscreen_widget=3556554584510136&tpl_var_consumer_group%5B0%5D=*&tpl_var_sentry_region%5B0%5D=us&view=spans&from_ts=1714750247173&to_ts=1714764647173&live=true
Technical Spec: https://www.notion.so/sentry/Metric-Alert-Load-Shedding-cba94dd0fa434f3bb56a23f920586eb2
We can have up to 30 minute resolutions when using comparison intervals, so maybe bump to 30?
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.
:x: Failed Test Results:
Completed 640 tests with 1 failed, 638 passed and 1 skipped.
View the full list of failed tests
| Test Description | Failure message |
|---|---|
Testsuite: |
Traceback (most recent call last): |
Updated the max resolution based on this convo: https://sentry.slack.com/archives/CLTE78L73/p1714771659170539 -- will see how 2min affects things and increase to size.
I'm still looking into the test failures.
@saponifi3d @wedamija is this PR still relevant?
@MeredithAnya i think so, we are still seeing some sawtooth in the graph for processing, this should help smooth when we execute snuba subscriptions
I can try to revive this PR and get it green, if it looks okay otherwise.