Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Create a Ceph performance test request¶
TechPreview
Warning
This procedure is valid for MOSK clusters that use the deprecated
KaaSCephCluster custom resource (CR) instead of the MiraCeph CR that is
available since MOSK 25.2 as a new Ceph configuration entrypoint. For the
equivalent procedure with the MiraCeph CR, refer to the following section:
Warning
Performance testing affects the overall Ceph cluster performance. Do not run it unless you are sure that user load will not be affected.
This section describes how to create a Ceph performance test request through
the KaaSCephOperationRequest CR.
To create a Ceph performance test request:
Create an RBD image with the required parameters. For example, run the following command in
ceph-tools-containerto allow execution of theperftestexample below on a MOSK cluster:kubectl exec -ti -n rook-ceph <ceph-tools-pod> -- bash rbd create <pool_name>/<image_name> --size 10G
Substitute
<ceph-tools-pod>with theceph-toolsPod ID,<pool_name>and<image_name>with pool and image names, and specify the size. In the example below,mirablock-k8s-block-hddis used as pool name andtestsas image name:kubectl exec -ti -n rook-ceph rook-ceph-tools-94985cd9f-tjl29 -- bash rbd create mirablock-k8s-block-hdd/tests --size 10G
Create a YAML template for the
KaaSCephOperationRequestCR. For details, see KaaSCephOperationRequest CR perftest specification.kubectl apply -f <example_file_name>.yaml
Example of the
KaaSCephOperationRequestresourceapiVersion: kaas.mirantis.com/v1alpha1 kind: KaaSCephOperationRequest metadata: name: test-perf-req namespace: mosk-ns spec: kaasCephCluster: name: ceph-kaas-mosk namespace: mosk-ns perfTest: parameters: - --ioengine=rbd - --pool=mirablock-k8s-block-hdd - --rbdname=tests - --name=single_perftest - --rw=randrw:16k - --rwmixread=40 - --bs=4k - --size=500M - --iodepth=32 - --numjobs=8 - --group_reporting - --direct=1 - --fsync=32 - --buffered=0 - --exitall
Review the
KaaSCephOperationRequeststatus. For details, see KaaSCephOperationRequest perftest status.kubectl get kaascephoperationrequest test-mosk-req -n mosk-ns
Example of system response:
NAME KAASCEPHCLUSTER CLUSTER AGE PHASE MESSAGE test-perf-req ceph-kaas-mosk kaas-mosk 20m Completed
Review the
CephPerfTestRequeststatus on the MOSK cluster.kubectl get cephperftestrequest -n ceph-lcm-mirantis
Example of system response:
NAME AGE PHASE START TIME DURATION JOB STATUS SCHEDULE test-perf-req 55m Finished 2022-06-17T09:29:57Z 5m53s Completed
Review the performance test result by inspecting logs for the corresponding job Pod on the MOSK cluster:
kubectl --kubeconfig <moskKubeconfig> -n rook-ceph logs -l app=ceph-perftest,perftest=<name>
Substitute
<moskKubeconfig>with the MOSK clusterkubeconfigand<name>with theKaaSCephOperationRequestmetadata.name, for example,test-perf-req.Optional. Remove the
KaaSCephOperationRequest. Removal ofKaaSCephOperationRequestalso removes theCephPerfTestRequestCR propagated to the MOSK cluster.