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

How can I rate limit transactions? #3503

Open
mertcb opened this issue Jan 2, 2025 · 1 comment
Open

How can I rate limit transactions? #3503

mertcb opened this issue Jan 2, 2025 · 1 comment

Comments

@mertcb
Copy link

mertcb commented Jan 2, 2025

Problem Statement

Hi, I'm using sentry self hosted version 24.11.2, with 5K (196K actual but most of them rate limited) error, and 225K transaction rate per hour. My system is kinda powerful, but I'd like to rate limit transactions like errors. Because we are still on a migration to sentry and I'm pretty sure that newcomer projects will make a spike and queues will be lagged. So then, before migrating them, I'd like to add ratelimit for transactions. I've researched several issues here but I couldn't find any proper solution except #1373 but this didn't worked for me. What do you guys suggest?

Solution Brainstorm

NGINX rate limit is ok, but I couldn't understand how can I configure it, I've tried the solution at the issue that I've mentioned above, but it gave 503 Service Unavailable that makes me think about wrong configuration.

@aldy505
Copy link
Collaborator

aldy505 commented Jan 11, 2025

Yes, rate limiting on the reverse proxy level is the way to do so. But, you might want to have another layer of reverse proxy that only handles ingestion endpoints only. That means these endpoints: https://develop.sentry.dev/self-hosted/experimental/reverse-proxy/#expose-only-ingest-endpoint-publicly

Image

This might be what you can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Status: No status
Development

No branches or pull requests

2 participants