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 {