Member-only story
Ceph Benchmark Tools, Part II
In the previous benchmark tool article, we take a look at rados bench utility feature for RADOS object benchmark. Today, we will take a look at another Ceph provided benchmark tool for RBD block images: rbd bench. It provides information on the number of read/write ops and bytes per second.
To run rbd bench utility, we need a block image and Ceph connection configuration and a Ceph credential to access the block image.
On Ceph Cluster
Now, let’s start with creating a RBD pool and an image inside the pool.
sudo ceph osd pool create rbd-bench
sudo rbd pool init rbd-bench
sudo rbd create bench-image -p rbd-bench --size 5G
Now, we will create a client that has access to this pool.
sudo ceph auth get-or-create client.rbd-bench \
mon 'profile rbd' \
osd 'profile rbd pool=rbd-bench' \
mgr 'profile rbd pool=rbd-bench' \
-o rbd-bench.keyring
On Client Node
Now, we are ready to set up client nodes and run benchmarks.
First, install ceph-common package.
sudo apt install -y ceph-common
Similar to the rados bench utility, we need a ceph configuration file and access info. For a Ceph configuration file, you can find it in /etc/ceph/ceph.conf or obtain it using ceph config command on the ceph cluster admin node. For more detail, see the previous article. For client credentials, we created…