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
{{ message }}
Repository navigation
Commit 96d9a96
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): Prevent Envoy retries of capacity rejections (#732)
Since #703, capacity rejections return 503. Our Envoy routes retry on
`gateway-error`, which includes 503. As a result, a saturated instance
gets retries of its own rejections.
This PR sets `x-envoy-ratelimited: true` on rate limit and capacity
rejections. Envoy does not retry a response that has this header. Real
gateway errors are still retried, and outlier detection still counts the
503s.
Ref FS-577, INC-2579
<!-- junior-request-attribution:start -->
via **async jauer**.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AD0AQCS7VDC2%3A1792685297.094279 -->
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0AQCS7VDC2%3A1792685297.094279)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0AQCS7VDC2%3A1792685297.094279/?project=4510944073809921)
<!-- junior-session-footer:end -->
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Jan Michael Auer <jan.auer@sentry.io>
0 commit comments