Open
Description
The health report #16056 is a great addition.
However load balancers typically can only hit HTTP(s) and check for their status code, and does not parse their body. They often send a HEAD request. So it's not possible to use it directly from a load balancer.
E.g. https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html
The way Elasticsearch solves it is by having a ?wait_for_status=green
parameter. If the status isn't the expected one, it returns a 5xx status.
https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html