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

Reduce the HTTP interations with Elasticsearch nodes during configuration #1043

Open
andsel opened this issue Oct 12, 2021 · 0 comments
Open

Comments

@andsel
Copy link
Contributor

andsel commented Oct 12, 2021

The healthcheck! method interacts with Elasticsearch to grant that connections in the pool are good, plus it does a preflight check during register phase.

This led to 4 HTTP calls to Elasticsearch, where some could be collapsed:

  1. HEAD request
  2. GET '/' for elasticsearch? on register_phase
  3. GET '/' to get elasticsearch version
  4. GET '/_license' check

Which could be reduced to only 2 calls:

  1. GET '/' for healthcheck (and always confirm it's ES)
  2. GET '/_license'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant