Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[elasticsearch] update readiness probe endpoint #586

Merged
merged 5 commits into from
Apr 21, 2020

Conversation

jmlrt
Copy link
Member

@jmlrt jmlrt commented Apr 17, 2020

This PR updates readiness probe endpoint to check only / endpoint instead of /_cluster/health?timeout=0s when Elasticsearch is already running.
This revert to initial config which was changed in #380 with the exception that 503 HTTP code is accepted for 6.x (see elastic/elasticsearch#8902 for more details about why 503 is OK on Elasticsearch 6.x).

Fix #553

  • Chart version not bumped (the versions are all bumped and released at the same time)
  • README.md updated with any new values or changes
  • Updated template tests in ${CHART}/tests/*.py
  • Updated integration tests in ${CHART}/examples/*/test/goss.yaml

@jmlrt jmlrt added the enhancement New feature or request label Apr 17, 2020
@jmlrt jmlrt requested review from fatmcgav, Crazybus and a team April 17, 2020 17:12
This PR update readiness probe endpoint to check only `/` endpoint instead of `/_cluster/health?timeout=0s` when Elasticsearch is already running.
This revert to initial config which was changed in elastic#380 with the exception that 503 HTTP code is accepted for 6.x (see elastic/elasticsearch#8902 for more details about why 503 is OK on Elasticsearch 6.x).
@jmlrt jmlrt marked this pull request as ready for review April 20, 2020 14:19
Copy link
Contributor

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I had one blocking (:no_entry_sign:) comment about the logging of credentials. Apart from that LGTM and I left a few other suggestions (:bulb:).

elasticsearch/templates/statefulset.yaml Outdated Show resolved Hide resolved
elasticsearch/templates/statefulset.yaml Outdated Show resolved Hide resolved
elasticsearch/templates/statefulset.yaml Outdated Show resolved Hide resolved
elasticsearch/templates/statefulset.yaml Outdated Show resolved Hide resolved
Co-Authored-By: Michael Russell <Crazybus@users.noreply.github.com>
@jmlrt jmlrt added the v7.7.0 label Apr 21, 2020
@jmlrt jmlrt requested a review from Crazybus April 21, 2020 09:50
Copy link
Contributor

@Crazybus Crazybus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jmlrt jmlrt merged commit 521eb28 into elastic:master Apr 21, 2020
@jmlrt jmlrt deleted the readiness-to-503 branch April 21, 2020 11:51
jmlrt added a commit that referenced this pull request Apr 21, 2020
[elasticsearch] update readiness probe endpoint
fatmcgav pushed a commit to fatmcgav/helm-charts that referenced this pull request May 20, 2020
The `readinessProbe` was updated in elastic#586, however this appears to have
introduced a bug which can cause the pod to report as ready before it
actually is, due to a lack of quoting around the URL query params,
combined with the use of '&'.

This commit reworks the `readinessProbe` to correctly quote things.

Reintroduced the `http` function, and added support for passing `args`
in addition to the `path`.
Also borrowed the `set --` pattern from the Kibana chart.
fatmcgav pushed a commit to fatmcgav/helm-charts that referenced this pull request May 20, 2020
The `readinessProbe` was updated in elastic#586, however this appears to have
introduced a bug which can cause the pod to report as ready before it
actually is, due to a lack of quoting around the URL query params,
combined with the use of '&'.

This commit reworks the `readinessProbe` to correctly quote things.

Reintroduced the `http` function, and added support for passing `args`
in addition to the `path`.
Also borrowed the `set --` pattern from the Kibana chart.
@jmlrt jmlrt mentioned this pull request Oct 28, 2020
This was referenced Nov 17, 2020
@jmlrt jmlrt mentioned this pull request Feb 8, 2021
This was referenced Mar 15, 2021
@jmlrt jmlrt mentioned this pull request May 25, 2021
@jmlrt jmlrt mentioned this pull request Mar 8, 2022
@jmlrt jmlrt mentioned this pull request Apr 21, 2022
This was referenced Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[elasticsearch] Revisit readinessProbe
2 participants