Skip to content

Align rpc liveness to use rpc probe

Antoine R. Dumont requested to merge migrate-rpc-liveness-probe into production

Storage and webapp instances are already using it.

helm diff
[swh] Comparing changes between branches production and migrate-rpc-liveness-probe (per environment)...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment staging, namespace swh...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra...
[swh] Generate config in production branch for environment staging, namespace swh-cassandra-next-version...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment staging...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment staging...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment staging...
Your branch is up to date with 'origin/production'.
[swh] Generate config in production branch for environment production, namespace swh...
[swh] Generate config in production branch for environment production, namespace swh-cassandra...
[swh] Generate config in production branch for environment production, namespace swh-cassandra-next-version...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment production...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment production...
[swh] Generate config in migrate-rpc-liveness-probe branch for environment production...


------------- diff for environment staging namespace swh -------------

--- /tmp/swh-chart.swh.Ka8qRpEM/staging-swh.before      2024-01-26 16:14:47.749192942 +0100
+++ /tmp/swh-chart.swh.Ka8qRpEM/staging-swh.after       2024-01-26 16:14:48.801191242 +0100
@@ -15076,22 +15076,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"
@@ -15210,22 +15209,21 @@
             - containerPort: 5007
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -21038,22 +21036,21 @@
             - containerPort: 5008
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -22231,22 +22228,21 @@
             - containerPort: 5010
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: THREADS


------------- diff for environment staging namespace swh-cassandra -------------

--- /tmp/swh-chart.swh.Ka8qRpEM/staging-swh-cassandra.before    2024-01-26 16:14:48.113192353 +0100
+++ /tmp/swh-chart.swh.Ka8qRpEM/staging-swh-cassandra.after     2024-01-26 16:14:49.137190698 +0100
@@ -15258,22 +15258,21 @@
             - containerPort: 5011
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -15432,26 +15431,22 @@
               path: /
               port: deposit-app
               httpHeaders:
                 - name: Host
                   value: deposit-rpc-ingress
             initialDelaySeconds: 5
             failureThreshold: 30
             periodSeconds: 10
             timeoutSeconds: 30
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: deposit-app
-              httpHeaders:
-                - name: Host
-                  value: deposit-rpc-ingress
             initialDelaySeconds: 3
             periodSeconds: 10
             timeoutSeconds: 30
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: STATSD_HOST
@@ -15577,22 +15572,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"
@@ -20391,22 +20385,21 @@
             - containerPort: 5003
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -20530,22 +20523,21 @@
             - containerPort: 5003
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -22704,22 +22696,21 @@
             - containerPort: 5005
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: THREADS


------------- diff for environment staging namespace swh-cassandra-next-version -------------

--- /tmp/swh-chart.swh.Ka8qRpEM/staging-swh-cassandra-next-version.before       2024-01-26 16:14:48.409191875 +0100
+++ /tmp/swh-chart.swh.Ka8qRpEM/staging-swh-cassandra-next-version.after        2024-01-26 16:14:49.481190142 +0100
@@ -14719,22 +14719,21 @@
             - containerPort: 5011
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -14830,22 +14829,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"
@@ -21052,22 +21050,21 @@
             - containerPort: 5005
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: THREADS


------------- diff for environment production namespace swh -------------

--- /tmp/swh-chart.swh.Ka8qRpEM/production-swh.before   2024-01-26 16:14:50.105189134 +0100
+++ /tmp/swh-chart.swh.Ka8qRpEM/production-swh.after    2024-01-26 16:14:50.969187737 +0100
@@ -19030,26 +19030,22 @@
               path: /
               port: deposit-app
               httpHeaders:
                 - name: Host
                   value: deposit-rpc-ingress
             initialDelaySeconds: 5
             failureThreshold: 30
             periodSeconds: 10
             timeoutSeconds: 30
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: deposit-app
-              httpHeaders:
-                - name: Host
-                  value: deposit-rpc-ingress
             initialDelaySeconds: 3
             periodSeconds: 10
             timeoutSeconds: 30
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: STATSD_HOST
@@ -19175,22 +19171,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"
@@ -19273,22 +19268,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"
@@ -19407,22 +19401,21 @@
             - containerPort: 5007
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -19556,22 +19549,21 @@
             - containerPort: 5007
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -29002,22 +28994,21 @@
             - containerPort: 5003
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -29130,22 +29121,21 @@
             - containerPort: 5003
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -29870,22 +29860,21 @@
             - containerPort: 5008
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
           - /bin/bash
           args:
           - -c
           - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -31709,22 +31698,21 @@
             - containerPort: 5010
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: THREADS
@@ -33194,22 +33182,21 @@
             - containerPort: 5005
               name: rpc
           readinessProbe:
             httpGet:
               path: /
               port: rpc
             initialDelaySeconds: 15
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           command:
             - /bin/bash
           args:
             - -c
             - /opt/swh/entrypoint.sh
           env:
             - name: THREADS


------------- diff for environment production namespace swh-cassandra -------------

--- /tmp/swh-chart.swh.Ka8qRpEM/production-swh-cassandra.before 2024-01-26 16:14:50.381188688 +0100
+++ /tmp/swh-chart.swh.Ka8qRpEM/production-swh-cassandra.after  2024-01-26 16:14:51.241187298 +0100
@@ -11807,22 +11807,21 @@
           ports:
             - containerPort: 5013
               name: rpc
           startupProbe:
             httpGet:
               path: /
               port: rpc
             failureThreshold: 30
             periodSeconds: 5
           livenessProbe:
-            httpGet:
-              path: /
+            tcpSocket:
               port: rpc
             initialDelaySeconds: 10
             periodSeconds: 5
           env:
           - name: STATSD_HOST
             value: prometheus-statsd-exporter
           - name: STATSD_PORT
             value: "9125"
           - name: PORT
             value: "5013"

Merge request reports

Loading