Skip to content

Commit

Permalink
Increase readiness and liveness probe timeouts, introduce an initial …
Browse files Browse the repository at this point in the history
…delay

Currently the default timeout of 1 second and no initial delay is applied
to the probes of the runner pods. Depending on the startup time this
can cause random Pod errors causing a whole TestRun to fail.

At some point it might also make sense to introduce a startupProbe to cover
the longer initial startup time a K6 instance (Pod) might need instead of every
increasing the runtime liveness and readiness checks.

Fixes grafana#306

Signed-off-by: Christian Rohmann <[email protected]>
  • Loading branch information
frittentheke committed Aug 12, 2024
1 parent 40dce3f commit 4a89025
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resources/jobs/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ func generateProbe(configuredProbe *corev1.Probe) *corev1.Probe {
return configuredProbe
}
return &corev1.Probe{
InitialDelaySeconds: 10,
TimeoutSeconds: 3,
ProbeHandler: corev1.ProbeHandler{
HTTPGet: &corev1.HTTPGetAction{
Path: "/v1/status",
Expand Down

0 comments on commit 4a89025

Please sign in to comment.