You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see why this is helpful on self-hosted, as every event never got dropped unless I set them to (via the "Delete and discard future events" button)
@aldy505 Traffic is several millions hourly reports. Regarding the actual setup, it's a bit elaborate, so not sure I can share it here in a concise way.
I don't see why this is helpful on self-hosted, as every event never got dropped unless I set them to (via the "Delete and discard future events" button)
I normally get <200 events per hour. Recently some kind of bug is suddenly sending 4000 events in a very short time, which is taking down my entire sentry instance (8GB ram, 4 CPU cores). My server load jumps to 280 or whatever and sometimes I can't even SSH in anymore. A simple server reboot doesn't solve it either, since it seems like Redis crashes completely, so it doesn't get restarted on server reboot. I need to manually shut down the docker containers and start them again.
When the Sentry instance goes down, it massively slows down my website (since the sentry error handling script needs to be loaded early in the HTML), since browsers attempt to wait for the sentry script to load (which it doesn't, so it waits until the timeout).
For everyone else, it seems we might need to add rate limiting on the nginx.conf ourselves.
Talked to Michi and Hubert at Discord, this feature is not feasible for maintaining in-app processed rate limiting for incoming events on self-hosted. It's only effective on SaaS.
Activity
[-]Add spike protection[/-][+]Add Spike Protection[/+]aldy505 commentedon May 3, 2023
I don't see why this is helpful on self-hosted, as every event never got dropped unless I set them to (via the "Delete and discard future events" button)
antonpodolsky commentedon May 4, 2023
@aldy505 At scale, spikes in error reports are choking our self-hosted Sentry backend and require continuous tweaking of resource limits.
aldy505 commentedon May 4, 2023
@antonpodolsky May I know your machine configuration and how much traffic is going through your instance?
antonpodolsky commentedon May 4, 2023
@aldy505 Traffic is several millions hourly reports. Regarding the actual setup, it's a bit elaborate, so not sure I can share it here in a concise way.
Aulig commentedon Aug 24, 2023
I normally get <200 events per hour. Recently some kind of bug is suddenly sending 4000 events in a very short time, which is taking down my entire sentry instance (8GB ram, 4 CPU cores). My server load jumps to 280 or whatever and sometimes I can't even SSH in anymore. A simple server reboot doesn't solve it either, since it seems like Redis crashes completely, so it doesn't get restarted on server reboot. I need to manually shut down the docker containers and start them again.
When the Sentry instance goes down, it massively slows down my website (since the sentry error handling script needs to be loaded early in the HTML), since browsers attempt to wait for the sentry script to load (which it doesn't, so it waits until the timeout).
Having this happen every 12-48 hours is no fun ;)
hubertdeng123 commentedon Aug 29, 2023
From enterprise team,
@chadwhitacre I don't think it's possible to enable this for self-hosted
aldy505 commentedon Aug 30, 2023
For everyone else, it seems we might need to add rate limiting on the nginx.conf ourselves.
Talked to Michi and Hubert at Discord, this feature is not feasible for maintaining in-app processed rate limiting for incoming events on self-hosted. It's only effective on SaaS.