From 0a2f2bfd932ec06a2575985c1393976492acb728 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Wed, 5 Oct 2022 08:29:18 -0600 Subject: [PATCH] osd: prepare job needs significant more memory for provisioning The OSD creation may need to burst during OSD provisioning depending on the size of the OSD or similar factors. If the OSD prepare job is OOM killed it will cause OSD provisioning to fail and have various side effects that are difficult to troubleshoot to get the OSD to succeed. So we increase the recommendation significantly to avoid the OOM kill. Signed-off-by: Travis Nielsen (cherry picked from commit 92c52c4a2eb9b380f536c868b556bb3d3482db88) --- Documentation/CRDs/Cluster/ceph-cluster-crd.md | 9 ++++++++- deploy/charts/rook-ceph-cluster/values.yaml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Documentation/CRDs/Cluster/ceph-cluster-crd.md b/Documentation/CRDs/Cluster/ceph-cluster-crd.md index 564184ec1..b11e679fc 100755 --- a/Documentation/CRDs/Cluster/ceph-cluster-crd.md +++ b/Documentation/CRDs/Cluster/ceph-cluster-crd.md @@ -513,10 +513,17 @@ If a user configures a limit or request value that is too low, Rook will still r * `mon`: 1024MB * `mgr`: 512MB * `osd`: 2048MB -* `prepareosd`: 50MB +* `prepareosd`: 1200MB (see the note below) * `crashcollector`: 60MB * `mgr-sidecar`: 100MB limit, 40MB requests +!!! note + * The OSD prepare job may burst its memory usage during the OSD provisioning. + We either recommend not setting memory limits on the OSD prepare job, or setting limits over 1GB to prevent OSD + provisioning failure due to memory constraints that are difficult to troubleshoot. The OSD prepare job + only bursts a single time per OSD. All future runs of the OSD prepare job will detect the OSD is already + provisioned and not require a burst. + !!! hint The resources for MDS daemons are not configured in the Cluster. Refer to the [Ceph Filesystem CRD](../Shared-Filesystem/ceph-filesystem-crd.md) instead. diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 443040fb0..67a61813d 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -259,7 +259,7 @@ cephClusterSpec: prepareosd: limits: cpu: "500m" - memory: "400Mi" + memory: "1200Mi" requests: cpu: "500m" memory: "50Mi"