In this recipe, we will perform tests to discover the baseline performance of the network between the Ceph OSD nodes. For this, we will be using the iperf
utility. Make sure that the iperf
package is installed on the Ceph nodes. iperf
is a simple, point-to-point network bandwidth tester that works on the client-server model.
To start network benchmarking, execute iperf
with the server option on the first Ceph node and with the client option on the second Ceph node.
Using iperf
, let's get a baseline for our clusters' network performance:
Install
iperf
on theceph-node1
andceph-node2
:
# sudo yum install iperf -y
- On
ceph-node1
, executeiperf
with-s
for the server, and-p
to listen on a specific port:
# iperf -s -p 6900
Note
You can skip the -p
option if the TPC port 5201
is open, or you can choose any other port that is open and not in use.
- On
ceph-node2
, executeiperf
with the client option,-c
:
# iperf -c ceph-node1 -p 6900