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

bytes_scanned_window_policy DD metric #6081

Merged
merged 1 commit into from
Jul 2, 2024
Merged

Conversation

xurui-c
Copy link
Member

@xurui-c xurui-c commented Jul 2, 2024

In a previous PR, we emit a Sentry warning and a GCP log for every query throttled by Snuba's capacity management system. However, we quickly realized a large volume of queries were throttled.

A potential solution we came up with is to sample the number of throttled queries we emit warnings and logging for, but before this, we realized that every throttled query I manually inspected from GCP logs is throttled by BytesScannedWindowAllocationPolicy, a policy we plan on deprecating anyways. A possible explanation of this occurrence is that BytesScannedWindowPolicy does not reject queries - it only throttles them.

We use this PR to answer 2 questions:

  1. is almost every throttled query throttled by BytesScannedWindowAllocationPolicy?
  2. out of all the queries that go through Snuba's CapMan, how many are throttled?

snuba/web/db_query.py Outdated Show resolved Hide resolved
@xurui-c xurui-c requested a review from nachivrn July 2, 2024 17:32
@xurui-c xurui-c merged commit 8a00dca into master Jul 2, 2024
28 checks passed
@xurui-c xurui-c deleted the rachel/windowMetrics branch July 2, 2024 20:03
@getsentry-bot
Copy link
Contributor

PR reverted: ba3e5ed

getsentry-bot added a commit that referenced this pull request Jul 3, 2024
This reverts commit 8a00dca.

Co-authored-by: ellisonmarks <125329741+ellisonmarks@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants