From 11376067ef15bac62cbbf81637d0214a549faa0e Mon Sep 17 00:00:00 2001 From: Keshav Prasad Date: Wed, 21 Apr 2021 12:38:42 +0530 Subject: [PATCH] fix: updated readiness and liveness probe values (#2451) --- ansible/roles/stack-sunbird/defaults/main.yml | 435 ++++++++---------- .../roles/helm-deploy/defaults/main.yml | 32 +- 2 files changed, 213 insertions(+), 254 deletions(-) diff --git a/ansible/roles/stack-sunbird/defaults/main.yml b/ansible/roles/stack-sunbird/defaults/main.yml index f74d2f560f..f27cd49697 100644 --- a/ansible/roles/stack-sunbird/defaults/main.yml +++ b/ansible/roles/stack-sunbird/defaults/main.yml @@ -288,19 +288,19 @@ dhiti_liveness_readiness: httpGet: path: /ping port: 4700 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /ping port: 4700 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 groups_liveness_readiness: healthcheck: true @@ -308,19 +308,19 @@ groups_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 lms_liveness_readiness: healthcheck: true @@ -328,19 +328,19 @@ lms_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 apimanager_liveness_readiness: healthcheck: true @@ -348,20 +348,19 @@ apimanager_liveness_readiness: httpGet: path: /status port: 8001 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /status port: 8001 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 1 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 assessment_liveness_readiness: healthcheck: true @@ -369,19 +368,19 @@ assessment_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 cert_liveness_readiness: healthcheck: true @@ -389,19 +388,19 @@ cert_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 certregistry_liveness_readiness: healthcheck: true @@ -409,19 +408,19 @@ certregistry_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 content_liveness_readiness: healthcheck: true @@ -429,19 +428,19 @@ content_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 enc_liveness_readiness: healthcheck: true @@ -449,19 +448,19 @@ enc_liveness_readiness: httpGet: path: /service/health port: 8013 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 8013 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 knowledgemw_liveness_readiness: healthcheck: true @@ -469,19 +468,19 @@ knowledgemw_liveness_readiness: httpGet: path: /service/health port: 5000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 5000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 learner_liveness_readiness: healthcheck: true @@ -489,19 +488,19 @@ learner_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 notification_liveness_readiness: healthcheck: true @@ -509,19 +508,19 @@ notification_liveness_readiness: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 player_liveness_readiness: healthcheck: true @@ -529,19 +528,19 @@ player_liveness_readiness: httpGet: path: /service/health port: 3000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 3000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 print_liveness_readiness: healthcheck: true @@ -549,19 +548,19 @@ print_liveness_readiness: httpGet: path: /health port: 5000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 5000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 telemetry_liveness_readiness: healthcheck: true @@ -569,38 +568,38 @@ telemetry_liveness_readiness: httpGet: path: /health port: 9001 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 9001 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 userorg_liveness_readiness: readinessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 discussionsmw_liveness_readiness: healthcheck: true @@ -608,59 +607,19 @@ discussionsmw_liveness_readiness: httpGet: path: /health port: 3002 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 3002 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - -search_liveness_readiness: - healthcheck: true - readinessProbe: - httpGet: - path: /health - port: 9000 - initialDelaySeconds: 30 - periodSeconds: 10 + initialDelaySeconds: 15 + periodSeconds: 15 timeoutSeconds: 5 - failureThreshold: 5 - successThreshold: 2 - livenessProbe: - httpGet: - path: /health - port: 9000 - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 5 - -taxonomy_liveness_readiness: - healthcheck: true - readinessProbe: - httpGet: - path: /health - port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 - livenessProbe: - httpGet: - path: /health - port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + failureThreshold: 2 search_liveness_readiness: healthcheck: true @@ -668,19 +627,19 @@ search_liveness_readiness: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 taxonomy_liveness_readiness: healthcheck: true @@ -688,19 +647,19 @@ taxonomy_liveness_readiness: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 report_liveness_readiness: healthcheck: true @@ -708,19 +667,19 @@ report_liveness_readiness: httpGet: path: /health port: 3030 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /service/health port: 3030 - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 analytics_liveness_readiness: healthcheck: true @@ -728,19 +687,19 @@ analytics_liveness_readiness: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 dial_liveness_readiness: healthcheck: true @@ -748,19 +707,19 @@ dial_liveness_readiness: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 9000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 adminutil__access_keyprefix: "access" adminutil__access_keystart: 0 diff --git a/kubernetes/ansible/roles/helm-deploy/defaults/main.yml b/kubernetes/ansible/roles/helm-deploy/defaults/main.yml index 8f248c5ece..b740841c90 100644 --- a/kubernetes/ansible/roles/helm-deploy/defaults/main.yml +++ b/kubernetes/ansible/roles/helm-deploy/defaults/main.yml @@ -69,19 +69,19 @@ adminutils_liveness_readiness: httpGet: path: /health port: 4000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 - successThreshold: 2 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 + successThreshold: 1 livenessProbe: httpGet: path: /health port: 4000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 api_managerecho_liveness_readiness: healthcheck: true @@ -89,19 +89,19 @@ api_managerecho_liveness_readiness: httpGet: path: /hello port: 9595 - initialDelaySeconds: 30 - periodSeconds: 10 + initialDelaySeconds: 15 + periodSeconds: 15 timeoutSeconds: 5 - failureThreshold: 5 + failureThreshold: 2 successThreshold: 1 livenessProbe: httpGet: path: /hello port: 9595 - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 5 + initialDelaySeconds: 15 + periodSeconds: 15 + timeoutSeconds: 5 + failureThreshold: 2 adminutil__device_keyprefix: "device_key" adminutil__access_keyprefix: "access_key"