---
title: "How one quadratic webhook handler pinned our autoscaler at its ceiling"
description: "Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined."
url: "https://swe.quest/articles/how-one-quadratic-webhook-handler-pinned-our-autoscaler-at-its-ceiling-edd41e1673be3d81"
canonical: "https://blog.sentry.io/quadratic-webhook-autoscaler-ceiling/"
source: "Sentry"
published: "2026-11-25"
difficulty: "medium"
kind: "Incident"
reading_minutes: 10
tags: ["capacity-planning","kubernetes","performance","incident-response","debugging"]
---

# How one quadratic webhook handler pinned our autoscaler at its ceiling

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-11-25, 10 min read, Incident. Original: [https://blog.sentry.io/quadratic-webhook-autoscaler-ceiling/](https://blog.sentry.io/quadratic-webhook-autoscaler-ceiling/)

## Summary

Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined. A four-year-old grouping bug attached 2,000+ installations to one shared Integration record, a webhook backfill fix enabled webhooks across all of them, and an N² installation lookup in assignment sync made each webhook trigger up to millions of cross-silo RPC calls. A misleading P95 busyness KEDA metric and asymmetric scale-up/scale-down rates masked the cause for weeks, until a per-method RPC breakdown exposed a 10x jump in one method. The fix cut average pods from ~150 to ~42 (about 72%). Lessons: verify scaling metrics actually fall as pods are added, break RPC volume down by method, and hunt N+1/N² calls that cross network boundaries.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- Kubernetes HPA autoscaling ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- RPC between services ([easy posts on RPC & gRPC](https://swe.quest/tags/rpc.md?difficulty=easy))
- percentile latency metrics ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

Sentry, KEDA, Granian, GitLab, Kubernetes HPA, PgBouncer

## Related posts

- [Thundering herd of circuit breakers](https://swe.quest/articles/thundering-herd-of-circuit-breakers-b2ab1d42eebffb68.md): Zalando Engineering · 2026-10-07 · Medium · 9 min read · Resilience, Incidents & postmortems, Observability, Kubernetes, Capacity planning
  A client's circuit breaker stayed open for hours because its half-open probes hit a service that the HPA had scaled down to three pods.
- [A Recap on May/June Stability](https://swe.quest/articles/a-recap-on-may-june-stability-4b12711289993df6.md): Neon · 2025-07-16 · Medium · 6 min read · Incidents & postmortems, Scaling, Kubernetes, PostgreSQL, Serverless
  Neon's May and June 2025 incidents were caused by a load surge from agentic AI platforms.
- [Incident Report: November 20th, 2025](https://swe.quest/articles/incident-report-november-20th-2025-8a5b09711237e8e3.md): Railway · 2025-11-21 · Easy · 3 min read · Incidents & postmortems, Resilience, Deployment, Queues & messaging
  A dip in GitHub push webhooks followed by a 10x surge flooded Railway's asynchronous deployment task queue, delaying all new deployments for about two and a half hours on November 20th, 2025.
- [How we tripled max concurrent jobs to boost performance of GitHub Actions](https://swe.quest/articles/how-we-tripled-max-concurrent-jobs-to-boost-performance-of-github-actions-9d54244cd033cdac.md): GitHub Engineering · 2022-09-16 · Medium · 5 min read · Performance engineering, Scaling, CI/CD, Caching
  GitHub Actions on GitHub Enterprise Server went from 2,200 to 7,000 max concurrent jobs on 96-core machines between GHES 3.2 and 3.6 through three main fixes.
- [Service disruption on October 20, 2025](https://swe.quest/articles/service-disruption-on-october-20-2025-fe786fa7dabbc413.md): incident.io · 2025-10-22 · Medium · 12 min read · Incidents & postmortems, Resilience, PostgreSQL, CI/CD, Cloud platforms
  The October 20, 2025 AWS us-east-1 outage degraded incident.io through third-party dependencies even though it runs on Google Cloud: its transcription, SAML, telecom and status page providers were all affected.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
