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 <tnielsen@redhat.com>
(cherry picked from commit 28e721d877)
This commit is contained in:
Travis Nielsen authored and Mergify committed 2022-05-12 16:25:30 +00:00
1 parent c12571745d
commit 07e42b789e
1 file changed
+8 -3
+8 -3
View File
@@ -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 {