From e95be76a36bad5b09b21bd0d2f6f70d8acad4d43 Mon Sep 17 00:00:00 2001 From: travisn Date: Thu, 25 Jan 2024 10:12:55 -0700 Subject: [PATCH] operator: increase cpu limits The operator needs to burst significantly when reconciling, then will quiet down and nearly not consume any cpu. Therefore, we allow the operator to burst to more than a full cpu instead of limiting it to a half cpu. Signed-off-by: travisn (cherry picked from commit ca288874032ddcb802cff98a1aeeef72e27a1fc9) --- Documentation/Helm-Charts/operator-chart.md | 2 +- deploy/charts/rook-ceph/values.yaml | 4 ++-- deploy/examples/operator-openshift.yaml | 4 ++-- deploy/examples/operator.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/Helm-Charts/operator-chart.md b/Documentation/Helm-Charts/operator-chart.md index 9d912de9a4c2..5c81aa879306 100644 --- a/Documentation/Helm-Charts/operator-chart.md +++ b/Documentation/Helm-Charts/operator-chart.md @@ -150,7 +150,7 @@ The following table lists the configurable parameters of the rook-operator chart | `pspEnable` | If true, create & use PSP resources | `false` | | `rbacAggregate.enableOBCs` | If true, create a ClusterRole aggregated to [user facing roles](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles) for objectbucketclaims | `false` | | `rbacEnable` | If true, create & use RBAC resources | `true` | -| `resources` | Pod resource requests & limits | `{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}` | +| `resources` | Pod resource requests & limits | `{"limits":{"cpu":"1500m","memory":"512Mi"},"requests":{"cpu":"200m","memory":"128Mi"}}` | | `scaleDownOperator` | If true, scale down the rook operator. This is useful for administrative actions where the rook operator must be scaled down, while using gitops style tooling to deploy your helm charts. | `false` | | `tolerations` | List of Kubernetes [`tolerations`](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) to add to the Deployment. | `[]` | | `unreachableNodeTolerationSeconds` | Delay to use for the `node.kubernetes.io/unreachable` pod failure toleration to override the Kubernetes default of 5 minutes | `5` | diff --git a/deploy/charts/rook-ceph/values.yaml b/deploy/charts/rook-ceph/values.yaml index 77c199edc0e1..770d9c4580c1 100644 --- a/deploy/charts/rook-ceph/values.yaml +++ b/deploy/charts/rook-ceph/values.yaml @@ -23,10 +23,10 @@ crds: # -- Pod resource requests & limits resources: limits: - cpu: 500m + cpu: 1500m memory: 512Mi requests: - cpu: 100m + cpu: 200m memory: 128Mi # -- Kubernetes [`nodeSelector`](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) to add to the Deployment. diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index 4afdfd12d78a..26d76f378e64 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -642,10 +642,10 @@ data: # - name: DISCOVER_DAEMON_RESOURCES # resources: # limits: - # cpu: 500m + # cpu: 1500m # memory: 512Mi # requests: - # cpu: 100m + # cpu: 200m # memory: 128Mi --- # The deployment for the rook operator diff --git a/deploy/examples/operator.yaml b/deploy/examples/operator.yaml index 327fa4c5d835..cc94f4515770 100644 --- a/deploy/examples/operator.yaml +++ b/deploy/examples/operator.yaml @@ -671,10 +671,10 @@ spec: # Recommended resource requests and limits, if desired #resources: # limits: - # cpu: 500m + # cpu: 1500m # memory: 512Mi # requests: - # cpu: 100m + # cpu: 200m # memory: 128Mi # Uncomment it to run lib bucket provisioner in multithreaded mode