Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return 503 on hitting distributor instance limits #6387

Conversation

anna-tran
Copy link
Contributor

@anna-tran anna-tran commented Nov 29, 2024

What this PR does:
Change the response code of the error to HTTP 503 returned by distributors when any of the distributor instance limits are hit, as these are errors on the service side not the client side.

Which issue(s) this PR fixes:
Fixes #6358

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@anna-tran anna-tran changed the title Return 503 on hitting distributor client inflight request limit Return 503 on hitting distributor instance limits Nov 29, 2024
@anna-tran anna-tran force-pushed the distributor-inflight-client-limit-5xx branch from f8a5843 to ac14d64 Compare November 29, 2024 23:17
Copy link
Member

@alanprot alanprot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 30, 2024
Copy link
Contributor

@danielblando danielblando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@danielblando danielblando merged commit 0c1cb3d into cortexproject:master Dec 3, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/distributor lgtm This PR has been approved by a maintainer size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add distributor global limit for ingester client requests
3 participants