Skip to content

Add Spike Protection #2122

Closed
Closed

Description

@chadwhitacre

Activity

  1. changed the title [-]Add spike protection[/-] [+]Add Spike Protection[/+] on May 3, 2023
  2. aldy505 commented on May 3, 2023

    @aldy505
    Collaborator

    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)

  3. antonpodolsky commented on May 4, 2023

    @antonpodolsky

    @aldy505 At scale, spikes in error reports are choking our self-hosted Sentry backend and require continuous tweaking of resource limits.

  4. aldy505 commented on May 4, 2023

    @aldy505
    Collaborator

    @antonpodolsky May I know your machine configuration and how much traffic is going through your instance?

  5. antonpodolsky commented on May 4, 2023

    @antonpodolsky

    @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.

  6. Aulig commented on Aug 24, 2023

    @Aulig

    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).

    Having this happen every 12-48 hours is no fun ;)

  7. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Aug 24, 2023
  8. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Aug 29, 2023
  9. hubertdeng123 commented on Aug 29, 2023

    @hubertdeng123
    Contributor

    From enterprise team,

    spike protection is in getsentry, which iirc is not available to self-hosted. we use subscription information (quotas) to determine spike thresholds

    @chadwhitacre I don't think it's possible to enable this for self-hosted

  10. aldy505 commented on Aug 30, 2023

    @aldy505
    Collaborator

    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.

  11. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Aug 30, 2023
  12. locked and limited conversation to collaborators on Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions