Skip to content

ref(tags): add concurrent_limit to ratelimit #94831

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MeredithAnya
Copy link
Member

@MeredithAnya MeredithAnya commented Jul 2, 2025

We've seen some load increases on the errors cluster that I think might have been partially driven by specific users (those users being proxy users of internal integrations) hitting endpoints that run expensive/long queries on clickhouse

We have some rate-limiting in snuba but that is on the project and organization level for the most part. When debugging on sentry it looked like default concurrent_limit is 25

deprecated rate limit specification {'GET': {<RateLimitCategory.IP: 'ip'>: RateLimit(limit=10, window=1, concurrent_limit=25), <RateLimitCategory.USER: 'user'>: RateLimit(limit=10, window=1, concurrent_limit=25), <RateLimitCategory.ORGANIZATION: 'org'>: RateLimit(limit=40, window=1, concurrent_limit=25)}}
(from SENTRY-3PFR)

For these endpoints we will want lower than 25 per user since the snuba concurrent ratelimiting is lower than 25 for this referrer

@MeredithAnya MeredithAnya requested a review from a team as a code owner July 2, 2025 22:31
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 2, 2025
Copy link
Member

@volokluev volokluev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks meredith!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants