From 1735e202e1b93cad8bfcb4bd75765c0f73b9d1d2 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Wed, 11 May 2022 14:29:25 -0600 Subject: [PATCH] osd: allow the osd to take a long time to start The startup probe for the OSD has been too aggressive to kill the OSD in case the OSD is taking some time to start. The OSD may be self-optimizing, scrubbing, or some other internal operation before it is ready to start. Rather than disable the startup probe completely, the default is now to retry for two hours in case the OSD is performing those operations. Signed-off-by: Travis Nielsen (cherry picked from commit 28e721d8773187c4a8fa5bb2cbc87d6c87eb274b) --- pkg/operator/ceph/controller/spec.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkg/operator/ceph/controller/spec.go b/pkg/operator/ceph/controller/spec.go index d7e185f07..2a09e69e3 100644 --- a/pkg/operator/ceph/controller/spec.go +++ b/pkg/operator/ceph/controller/spec.go @@ -48,14 +48,19 @@ const ( volumeMountSubPath = "data" crashVolumeName = "rook-ceph-crash" daemonSocketDir = "/run/ceph" - livenessProbeInitialDelaySeconds int32 = 10 - startupProbeFailuresDaemonDefault int32 = 6 // multiply by 10 = effective startup timeout - startupProbeFailuresDaemonOSD int32 = 9 // multiply by 10 = effective startup timeout logCollector = "log-collector" DaemonIDLabel = "ceph_daemon_id" daemonTypeLabel = "ceph_daemon_type" ExternalMgrAppName = "rook-ceph-mgr-external" ServiceExternalMetricName = "http-external-metrics" + livenessProbeInitialDelaySeconds int32 = 10 + startupProbeFailuresDaemonDefault int32 = 6 // multiply by 10 = effective startup timeout + // The OSD requires a long timeout in case the OSD is taking extra time to + // scrub data during startup. We don't want the probe to disrupt the OSD update + // and restart the OSD prematurely. So we set a really long timeout to avoid + // disabling the startup and liveness probes completely. + // The default is two hours after multiplying by the 10s retry interval. + startupProbeFailuresDaemonOSD int32 = 12 * 60 ) type daemonConfig struct {