Skip to content

chore(dashboards): Bump up rate limit for the events endpoint #57876

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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

udameli
Copy link
Contributor

@udameli udameli commented Oct 10, 2023

Some of our customers have more than 15 widgets in the dashboard. All the widgets are making concurrent requests which leads to 429 error returned by the server. To allow these customers use their dashboards, I'm bumping up the rate limit to 30 and concurrent rate limit to 15.

Fixes #57173

@udameli udameli requested review from a team and wmak October 10, 2023 23:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 10, 2023
Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

I know the ticket specifically mentions big number, but presumably this also affects release health widgets. I'm not sure what the rate limit is on the sessions endpoint but we may have to address a rate limit there as well. I think the events endpoint is by far the largest offender for the 429 issue though

@udameli
Copy link
Contributor Author

udameli commented Oct 11, 2023

I know the ticket specifically mentions big number, but presumably this also affects release health widgets. I'm not sure what the rate limit is on the sessions endpoint but we may have to address a rate limit there as well. I think the events endpoint is by far the largest offender for the 429 issue though

I can bump up the rate limit there as well if it becomes an issue

@udameli udameli merged commit 48ebf58 into master Oct 11, 2023
@udameli udameli deleted the du/chore/bump-up-rate-limiters branch October 11, 2023 16:28
volokluev added a commit that referenced this pull request Oct 16, 2023
I don't know how this test passed but the rate limit was bumped up in
#57876 while the test was not
modified.

* Move the test outside of the snuba acceptance suite since it does not
actually test snuba
* fix the test to use the rate limit constant so it doesn't fail like
this anymore
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard fails to load some widgets due to 429 - throttling 15 req/sec.
2 participants