When you install Fusion Data Foundation, it comes
with pre-defined CPU and memory resources for the rook-ceph pods. You can manually increase these
values according to the requirements.
About this task
You can change the CPU and memory resources on the following pods:
The following example illustrates how to change the CPU and memory resources on the rook-ceph
pods. In this example, the existing MDS pod values of
cpu
and
memory
are increased from
1
and
4Gi
to
2
and
8Gi
respectively.
Procedure
-
Edit the storage cluster.
Use the following command, where
<storagecluster_name> specifies the name of the storage
cluster.
oc edit storagecluster -n openshift-storage <storagecluster_name>
For
example:
oc edit storagecluster -n openshift-storage ocs-storagecluster
- Add the following lines to the storage cluster Custom Resource (CR):
spec:
resources:
mds:
limits:
cpu: 2memory: 8Gi
requests:
cpu: 2memory: 8Gi
- Save the changes and exit the editor.
- Alternatively, run the oc patch command to change the CPU and memory
value of the
mds
pod. Use the following command, where
<storagecluster_name> specifies the name of the storage
cluster.
oc patch -n openshift-storage storagecluster <storagecluster_name> --type merge \ --patch '{"spec": {"resources": {"mds": {"limits": {"cpu": "2","memory": "8Gi"},"requests": {"cpu": "2","memory": "8Gi"}}}}}'
For
example:
oc patch -n openshift-storage storagecluster ocs-storagecluster \
--type merge \
--patch '{"spec": {"resources": {"mds": {"limits": {"cpu": "2","memory": "8Gi"},"requests": {"cpu": "2","memory": "8Gi"}}}}}'