elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.48k stars 24.88k forks source link

HealthPeriodicLogger doesn't report ill health if preflight checks failing #99415

Open DaveCTurner opened 1 year ago

DaveCTurner commented 1 year ago

Today the HealthPeriodicLogger only emits logs on the currently-selected health node, but if the cluster is sufficiently unhealthy (i.e. preflight checks failing) then there may not be a currently-selected health node. Or it may be that a node cannot join the cluster so the cluster thinks it's healthy, and the excluded node is not the currently-selected health node so it cannot report otherwise. In these cases the preflight health checks are failing, and in that case nodes should be able to make the unilateral decision to report that they are unhealthy.

elasticsearchmachine commented 1 year ago

Pinging @elastic/es-data-management (Team:Data Management)