To benchmark the Ceph Block Device, we need to create a block device and map that to the Ceph client node:
- Install the FIO package on the node where you mapped the Ceph RBD image. In our case, it's the ceph-client1 node:
# yum install fio -y
Since FIO supports RBD ioengine, we do not need to mount the RBD image as a filesystem. To benchmark RBD, we simply need to provide the RBD image name, pool, and Ceph user that will be used to connect to the Ceph cluster. Create the FIO profile with the following content:
[write-4M] description="write test with block size of 4M" ioengine=rbd clientname=admin pool=rbd rbdname=block-device1 iodepth=32 runtime=120 rw=write bs=4M
- To start FIO benchmarking, execute the following FIO command ...