Skip to content

Commit

Permalink
operator: increase cpu limits
Browse files Browse the repository at this point in the history
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 <tnielsen@redhat.com>
  • Loading branch information
travisn committed Jan 25, 2024
1 parent 2d83858 commit ca28887
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Documentation/Helm-Charts/operator-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
4 changes: 2 additions & 2 deletions deploy/charts/rook-ceph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions deploy/examples/operator-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions deploy/examples/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca28887

Please sign in to comment.