Open
Description
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:
- HEAD request
- GET '/' for elasticsearch? on register_phase
- GET '/' to get elasticsearch version
- GET '/_license' check
Which could be reduced to only 2 calls:
- GET '/' for healthcheck (and always confirm it's ES)
- GET '/_license'