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

Add e2e test for timeout and 429 on startup #3232

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

michel-laterman
Copy link
Contributor

@michel-laterman michel-laterman commented Jan 22, 2024

What is the problem this PR solves?

We have observed the fleet-server crashing if a 429 is returned when fleet-server initializes.

How does this PR solve the problem?

Add e2e tests to for this behaviour to ensure no regressions occur.

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 bug Something isn't working Team:Fleet Label for the Fleet team labels Jan 22, 2024
@michel-laterman michel-laterman force-pushed the startup429 branch 2 times, most recently from 494a4bb to abe9e14 Compare January 22, 2024 21:20
Copy link

Quality Gate passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No Coverage information No data about Coverage
0.0% 0.0% Duplication on New Code

See analysis details on SonarQube

@michel-laterman michel-laterman marked this pull request as ready for review January 23, 2024 15:28
@michel-laterman michel-laterman requested a review from a team as a code owner January 23, 2024 15:28
Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@michel-laterman michel-laterman merged commit fdeb805 into elastic:main Jan 23, 2024
8 checks passed
@michel-laterman michel-laterman deleted the startup429 branch January 23, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Fleet Label for the Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fleet server standalone crash on startup if es return 429
2 participants