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

Change response codes for elasticsearch failures to 503 #3235

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

michel-laterman
Copy link
Contributor

What is the problem this PR solves?

fleet-server returns a 500 if a call to elasticsearch fails

How does this PR solve the problem?

Change returned status code to 503 to indicate a temporary problem.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool

Related issues

@michel-laterman michel-laterman added enhancement New feature or request Team:Fleet Label for the Fleet team labels Jan 24, 2024
@michel-laterman michel-laterman requested a review from a team as a code owner January 24, 2024 20:17
Copy link
Member

@kpollich kpollich left a comment

Choose a reason for hiding this comment

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

Makes sense to me

Copy link

@michel-laterman michel-laterman enabled auto-merge (squash) January 24, 2024 20:35
@michel-laterman michel-laterman merged commit 8ea604d into elastic:main Jan 24, 2024
8 checks passed
@michel-laterman michel-laterman deleted the es-err-503 branch January 24, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Fleet Label for the Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fleet Server returns 500 on serverless causing elastic-agent to go offline
3 participants