This repository has been archived by the owner on May 16, 2023. It is now read-only.
[elasticsearch] Tweak the 'readinessProbe' command to verify that master nodes are available. #380
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The behaviour of the
/
endpoint changed[0] between 6.x and 7.x, wherebypreviously it would return a HTTP
503
response when the cluster wasblocked, it now returns a HTTP
200
response even if there are no mastersavailable.
This change updates the behaviour of the
readinessProbe
command duringnormal running to verify that the local node is responding and that there
are master nodes available. [1]
The desired behaviour here is that if the data nodes are unable to talk to
their master nodes for whatever reason, then the data nodes will become
Unready
and therefore be removed from the Service load-balancer untilthe master nodes are available again.
Refs:
[0] elastic/elasticsearch#29045
[1] elastic/elasticsearch#34897 (comment)
[ ] README.md updated with any new values or changes${CHART}/tests/*.py
[ ] Updated integration tests in${CHART}/examples/*/test/goss.yaml