Three GitLab integration bugs drove Sentry’s autoscaler to its limit
Brief
Three GitLab integration bugs caused a single webhook to trigger potentially millions of internal RPC calls, pinning Sentry’s Control deployment at its 256-pod ceiling.
What caused the spike
- A four-year-old grouping bug accumulated more than 2,000 GitLab installations on one shared Integration record.
- A webhook setup fix enabled triggers across those installations; an N² lookup then made each webhook generate potentially millions of RPC calls across the Region–Control boundary.
- Breaking RPC counts down by method exposed a roughly 10× weekly increase in integrations.get_organization_integrations, hidden by relatively flat overall totals.
Impact and lessons
- After a patch, the weekly average fell from about 150 pods to about 42—roughly 72% fewer—and stayed near baseline the following week.
- Sentry recommends validating that scaling metrics fall as pods are added, comparing scale-up and scale-down speeds, tracking RPCs by method, and checking for cross-service N² lookups and unbounded shared records.
- The incident’s root cause was fixed, but Sentry says a separate scaling spiral remains under investigation.
Generated by AI from the original article. Check the source for full details.