Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change readiness timeout var #2269

Merged
merged 3 commits into from
Dec 16, 2019
Merged

Change readiness timeout var #2269

merged 3 commits into from
Dec 16, 2019

Conversation

anyasabo
Copy link
Contributor

Follow up to #2260

Changing the name of the env var and adding some docs

@anyasabo anyasabo added the >docs Documentation label Dec 13, 2019
Copy link
Contributor

@sebgl sebgl left a comment

Choose a reason for hiding this comment

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

LGTM
Makes me wonder if our 3 seconds default is high enough.

- name: elasticsearch
env:
- name: READINESS_PROBE_TIMEOUT
value: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

I fear that this is not enough because the probe has also a timeout defined at the container level in the spec (set to 5sec).

func NewReadinessProbe() *corev1.Probe {
return &corev1.Probe{
FailureThreshold: 3,
InitialDelaySeconds: 10,
PeriodSeconds: 5,
SuccessThreshold: 1,
TimeoutSeconds: 5,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I updated the docs with an example and tested it out

Copy link
Contributor

@thbkrkr thbkrkr left a comment

Choose a reason for hiding this comment

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

LGTM

@anyasabo anyasabo merged commit 65e2c96 into elastic:master Dec 16, 2019
mjmbischoff pushed a commit to mjmbischoff/cloud-on-k8s that referenced this pull request Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants