From b7c82cbb4701a07fba8578fc51df7320cf3ee4af Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Fri, 4 Apr 2025 09:58:43 +0200 Subject: [PATCH] resultsdb: Update probes Adds startupProbe and longer probing intervals for backend and frontend. --- .../backend/deploymentconfigs.yml.j2 | 23 +++++++++++++--- .../frontend/deploymentconfigs.yml.j2 | 27 ++++++++++++++----- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/roles/openshift-apps/resultsdb/templates/backend/deploymentconfigs.yml.j2 b/roles/openshift-apps/resultsdb/templates/backend/deploymentconfigs.yml.j2 index 947aa7bfa9..a79576f8d3 100644 --- a/roles/openshift-apps/resultsdb/templates/backend/deploymentconfigs.yml.j2 +++ b/roles/openshift-apps/resultsdb/templates/backend/deploymentconfigs.yml.j2 @@ -82,18 +82,33 @@ spec: - name: fedora-messaging-config-volume mountPath: /etc/fedora-messaging readOnly: true - readinessProbe: - timeoutSeconds: 1 - initialDelaySeconds: 5 + + startupProbe: + timeoutSeconds: 5 + periodSeconds: 5 + failureThreshold: 30 httpGet: path: /api/v2.0/healthcheck port: 5001 + livenessProbe: timeoutSeconds: 5 - initialDelaySeconds: 30 + periodSeconds: 60 + failureThreshold: 3 + successThreshold: 1 httpGet: path: /api/v2.0/healthcheck port: 5001 + + readinessProbe: + timeoutSeconds: 1 + periodSeconds: 10 + failureThreshold: 3 + successThreshold: 1 + httpGet: + path: /api/v2.0 + port: 5001 + resources: limits: memory: 500Mi diff --git a/roles/openshift-apps/resultsdb/templates/frontend/deploymentconfigs.yml.j2 b/roles/openshift-apps/resultsdb/templates/frontend/deploymentconfigs.yml.j2 index 60d71a8fd1..d278c1436f 100644 --- a/roles/openshift-apps/resultsdb/templates/frontend/deploymentconfigs.yml.j2 +++ b/roles/openshift-apps/resultsdb/templates/frontend/deploymentconfigs.yml.j2 @@ -45,18 +45,33 @@ spec: - name: httpd-config-volume mountPath: /etc/httpd/conf.d readOnly: true - readinessProbe: - timeoutSeconds: 1 - initialDelaySeconds: 5 + + startupProbe: + timeoutSeconds: 5 + periodSeconds: 5 + failureThreshold: 30 httpGet: - path: / + path: /results?limit=1 port: 5002 + livenessProbe: timeoutSeconds: 5 - initialDelaySeconds: 30 + periodSeconds: 60 + failureThreshold: 3 + successThreshold: 1 httpGet: - path: / + path: /results?limit=0 port: 5002 + + readinessProbe: + timeoutSeconds: 1 + periodSeconds: 10 + failureThreshold: 3 + successThreshold: 1 + httpGet: + path: /results?limit=0 + port: 5002 + # Limit to 384MB memory. This is probably *not* enough but it is # necessary in the current environment to allow for 2 replicas and # rolling updates, without hitting the (very aggressive) memory quota.