From 96c42756a0b269a90060d51abaf5cf15e5501948 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Fri, 18 Jun 2021 09:24:58 -0600 Subject: [PATCH] ceph: set example memory requests and limits on the operator The operator has very bursty behavior while it is reconciling, then has much lower resource requirements. We reduce the memory requests to 128Mi while the limits remain at 256Mi. When not reconciling, the background health operations are much less resource demanding. Signed-off-by: Travis Nielsen --- cluster/charts/rook-ceph/values.yaml | 2 +- cluster/examples/kubernetes/ceph/operator-openshift.yaml | 9 +++++++++ cluster/examples/kubernetes/ceph/operator.yaml | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cluster/charts/rook-ceph/values.yaml b/cluster/charts/rook-ceph/values.yaml index 143b60db9050..36d399e91f72 100644 --- a/cluster/charts/rook-ceph/values.yaml +++ b/cluster/charts/rook-ceph/values.yaml @@ -22,7 +22,7 @@ resources: memory: 256Mi requests: cpu: 100m - memory: 256Mi + memory: 128Mi nodeSelector: {} # Constraint rook-ceph-operator Deployment to nodes with label `disktype: ssd`. diff --git a/cluster/examples/kubernetes/ceph/operator-openshift.yaml b/cluster/examples/kubernetes/ceph/operator-openshift.yaml index ec02beb79b3a..63319447cd3f 100644 --- a/cluster/examples/kubernetes/ceph/operator-openshift.yaml +++ b/cluster/examples/kubernetes/ceph/operator-openshift.yaml @@ -557,6 +557,15 @@ spec: fieldRef: fieldPath: metadata.namespace + # Recommended resource requests and limits, if desired + #resources: + # limits: + # cpu: 500m + # memory: 256Mi + # requests: + # cpu: 100m + # memory: 128Mi + # Uncomment it to run lib bucket provisioner in multithreaded mode #- name: LIB_BUCKET_PROVISIONER_THREADS # value: "5" diff --git a/cluster/examples/kubernetes/ceph/operator.yaml b/cluster/examples/kubernetes/ceph/operator.yaml index f351107c5bf3..007ea0ae0a80 100644 --- a/cluster/examples/kubernetes/ceph/operator.yaml +++ b/cluster/examples/kubernetes/ceph/operator.yaml @@ -500,6 +500,14 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + # Recommended resource requests and limits, if desired + #resources: + # limits: + # cpu: 500m + # memory: 256Mi + # requests: + # cpu: 100m + # memory: 128Mi # Uncomment it to run lib bucket provisioner in multithreaded mode #- name: LIB_BUCKET_PROVISIONER_THREADS