O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To benchmark the Ceph Block Device, we need to create a block device and map that to the Ceph client node:

  1. 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
  1. To start FIO benchmarking, execute the following FIO command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required