Эх сурвалжийг харах

limit OSDs to 4Gi, but with autotune=true

Josh Bicking 1 өдөр өмнө
parent
commit
d73a1520de

+ 14 - 10
argocd/rook/rook-ceph-cluster-values.yaml

@@ -58,28 +58,32 @@ cephClusterSpec:
           value: "true"
           value: "true"
           effect: PreferNoSchedule
           effect: PreferNoSchedule
 
 
+  # Ensure osd_memory_target_autotune is true if not limiting mgr & mon memory
   resources:
   resources:
     mgr:
     mgr:
-      limits:
-        cpu: 0
-        memory: "3Gi"
       requests:
       requests:
         cpu: 0
         cpu: 0
-        memory: "512Mi"
-    mon:
+        memory: 0
       limits:
       limits:
         cpu: 0
         cpu: 0
-        memory: "1Gi"
+        memory: 0
+    mon:
       requests:
       requests:
         cpu: 0
         cpu: 0
-        memory: "500Mi"
-    osd:
+        memory: 0
       limits:
       limits:
         cpu: 0
         cpu: 0
-        memory: "3Gi"
+        memory: 0
+    osd:
       requests:
       requests:
         cpu: 0
         cpu: 0
-        memory: "1Gi"
+        memory: 0
+      limits:
+        cpu: 0
+        # Ensure osd_memory_target reflects this
+        # https://docs.ceph.com/en/latest/start/hardware-recommendations/#ram
+        # memory: "3Gi"
+        memory: "4Gi"
     prepareosd:
     prepareosd:
       # limits: It is not recommended to set limits on the OSD prepare job
       # limits: It is not recommended to set limits on the OSD prepare job
       #         since it's a one-time burst for memory that must be allowed to
       #         since it's a one-time burst for memory that must be allowed to