elastic / cloud-on-k8s

Elastic Cloud on Kubernetes
Other
2.57k stars 697 forks source link

readiness probe not cover left node #4354

Closed JaydenHan1106 closed 3 years ago

JaydenHan1106 commented 3 years ago

Hi all, Readiness probe is "Get 9200 port" now. When es node left cluster(such as network problem), readiness probe still return ok, so request still can arrive left node. It's not our expect.

thbkrkr commented 3 years ago

The Elasticsearch readiness probe was designed to:

History of changes on this probe: 1) /_cat/master => / # increase availiblity and favor search requests (#617 / PR #626) 2) / => _cat/nodes?local # don't break change budget (#1748 / PR #1777) 2) _cat/nodes?local => / # don't fail if a single node is stuck (#2248 / PR #2272)