shuan1026 commented on code in PR #42:
URL: https://github.com/apache/ozone-helm-charts/pull/42#discussion_r3640044765
##########
charts/ozone/templates/scm/scm-statefulset.yaml:
##########
@@ -117,6 +117,19 @@ spec:
- name: grpc
containerPort: {{ .Values.scm.service.grpcPort }}
{{- end }}
+ {{- if gt (int .Values.scm.replicas) 1 }}
+ startupProbe:
+ exec:
+ command:
+ - sh
+ - -c
+ - |
+ ozone admin scm roles 2>/dev/null | grep -q $(hostname -f)
&& exit 0 || exit 1
Review Comment:
Thanks for the suggestion! I've updated the SCM startupProbe to also check
that SCM has left safe mode, and increased failureThreshold so the probe has
enough time before the pod is restarted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]