diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-05-05 10:50:55 +0200 |
---|---|---|
committer | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2021-05-12 11:25:49 +0000 |
commit | 60f25bd891c630a0a3dbbf899bd2aea05338a11f (patch) | |
tree | ca871ed84fa8c7ba7bbf7566fb390d3361432d71 /kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml | |
parent | d82ed7c1549b5b90597552d62fbf2dd22121aeeb (diff) |
[MUSIC][CASSANDRA] Use Startup probes
Instead of long initial delay on readiness and liveness probes, use
startup probes and be more aggressive on readiness and liveness.
Also, decrease number of replicas from 3 to 1
Issue-ID: OOM-2742
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Ideb0ede251332e182b975ff18ca5a75bcbff2351
Diffstat (limited to 'kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml')
-rw-r--r-- | kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml b/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml index 2a1fb4f59e..1aabfb6bcc 100644 --- a/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml +++ b/kubernetes/common/music/components/music-cassandra/templates/statefulset.yaml @@ -73,6 +73,17 @@ spec: timeoutSeconds: {{ .Values.readiness.timeoutSeconds }} successThreshold: {{ .Values.readiness.successThreshold }} failureThreshold: {{ .Values.readiness.failureThreshold }} + startupProbe: + exec: + command: + - /bin/bash + - -c + - nodetool status | grep $POD_IP | awk '$1!="UN" { exit 1; }' + initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }} + periodSeconds: {{ .Values.startup.periodSeconds }} + timeoutSeconds: {{ .Values.startup.timeoutSeconds }} + successThreshold: {{ .Values.startup.successThreshold }} + failureThreshold: {{ .Values.startup.failureThreshold }} lifecycle: preStop: exec: |