-
Notifications
You must be signed in to change notification settings - Fork 718
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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).
cloud-on-k8s/pkg/controller/elasticsearch/nodespec/readiness_probe.go
Lines 14 to 20 in 0728ae2
func NewReadinessProbe() *corev1.Probe { | |
return &corev1.Probe{ | |
FailureThreshold: 3, | |
InitialDelaySeconds: 10, | |
PeriodSeconds: 5, | |
SuccessThreshold: 1, | |
TimeoutSeconds: 5, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Follow up to #2260
Changing the name of the env var and adding some docs