Benchmarking the Ceph block device

The tools, rados bench and rados load-gen, which we discussed in the last recipe, are used to benchmark the Ceph cluster pool. In this recipe, we will focus on benchmarking the Ceph block device with the rbd bench-write tool.

Ceph rbd bench-write

The ceph rbd command-line interface provides an option known as bench-write, which is a tool to perform write benchmarking operations on the Ceph Rados Block Device.

How to do it…

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

  1. Create a Ceph block device named block-device1, of size 1G, and map it:
    # rbd create block-device1 --size 10240
    # rbd info --image block-device1
    # rbd map block-device1
    # rbd showmapped
    
  2. Create ...

Get Ceph Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.