Skip to content

feat: Add probes to the app deployment - #1652

Open
kratsg wants to merge 1 commit into
ssl-hep:developfrom
kratsg:app-probes
Open

kratsg wants to merge 1 commit into
ssl-hep:developfrom
kratsg:app-probes

Conversation

@kratsg

@kratsg kratsg commented Nov 19, 2026

Copy link
Copy Markdown

Following up on discussion in IRIS-HEP slack (https://iris-hep.slack.com/archives/CJH870SR2/p1795121386441709), adding the probes into servicex will help us determine if the pods are responsive. While as Peter mentioned this doesn't solve the issue for why a pod gets wedged/stuck/unresponsive, it should at least allow for k8s to manage and kick/restart the pod more autonmously than otherwise not. It also gives us a little more visibility for when a pod is not behaving as expected.

For now until 1.9.1 is released with these changes, I've added these as postRenders in kustomize on v1.9.0.

Thanks!

The app container had no probes, so a replica with hung gunicorn workers
stayed in the service endpoints and kept getting traffic. All three probes
hit GET /servicex (no auth, no db). Each can be overridden or set to null.
@ponyisi ponyisi added this to the 1.9.X milestone Nov 19, 2026
| `app.ingress.tls.secretName` | Name of TLS Secret used for ServiceX API server | `{{.Release.Name}}-app-tls` |
| `app.ingress.tls.clusterIssuer` | Specify a ClusterIssuer if using cert-manager | - |
| `app.resources` | Kubernetes pod resource spec for CPU and memory requests/limits | 100m/256Mi requests, 1/1Gi limits |
| `app.startupProbe` | Startup probe for the app container. Covers the db migrations at boot. Set to null to disable | `GET /servicex`, 10s x 60 |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit confusing re how this is actually altered in values.yaml (except for how to disable). Can the format of a non-null setting be specified?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format follows https://kubernetes.io/docs/reference/kubernetes-api/core/pod-v1/#Probe . For example:

httpGet:
  path: /servicex
  port: 5000
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 60

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you want the documentation to just reference the k8s spec here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be fine

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants