How to update the optimization parameters?
The platform supports filling in optimization parameters in Ceph configuration file format when creating a storage cluster, but does not provide a way to modify them through the interface after creation. You need to manually update them according to the following steps.
Procedure
-
First, update the storage optimization parameters to the Configmap named
rook-config-override-user, replace the.data.configfield, and set the value of the.metadata.annotations[rook.cpaas.io/need-sync]field totrue. For example:apiVersion: v1 data: config: | [global] mon_memory_target=1073741824 mds_cache_memory_limit=2147483648 osd_memory_target=4147483648 kind: ConfigMap metadata: annotations: cpaas.io/creator: admin cpaas.io/updated-at: "2022-03-01T12:24:04Z" rook.cpaas.io/need-sync: "true" rook.cpaas.io/sync-status: synced creationTimestamp: "2022-03-01T12:24:04Z" finalizers: - rook.cpaas.io/config-merge name: rook-config-override-user namespace: default resourceVersion: "38816864" uid: ce3a8f3e-6453-4bdd-bff0-e16cf7d5d5fa -
Execute
ceph tell [mon|osd|mgr|mds|rgw].* config set [key] [value]in the Pod of rook-ceph-tools to apply the configuration in real time. -
To start the Pod of tools, edit the ClusterServiceVersion (CSV) under the rook-ceph namespace and set the replicas value of rook-ceph-tools in the Deployments section to 1.