Configuring Quality of Service
As a storage administrator, configure the Quality of Service (QoS) per namespace to adjust the NVMe-oF gateway usage.
Define the QoS per namespace, by using the namespace set_qos command.
Note: The commands here show the SUBSYSTEM_NQN with the subsystem NQN and group name, assuming that the --no-group-append was not added when adding the subsystem. For more information, see Managing subsystems with nvmeof-cli.
ceph nvmeof namespace set_qos --nqn NQN [--nsid NAMESPACE_NSID |--uuidNAMESPACE_UUID] --OTHER_PARAMETER VALUE
For example,
[root@host01 ~]# ceph nvmeof namespace set_qos --nqn nqn.2016-06.io.spdk:cnode1.group1 --nsid 1 --rw-ios-per-second 0 Success
Table 1 lists the optional QoS parameters and their values that can be defined.
| Parameter name | Value | Notes |
|---|---|---|
| --nsid | Namespace NSID |
Note: Specify either the UUID or NSID. One of the parameters must be specified.
|
| --r-megabytes-per-second | R_MEGABYTES_PER_SECOND | Number of allowed read megabytes per second.
Use 0 for unlimited megabytes. |
| --rw-ios-per-second | RW_IOS_PER_SECOND | Number of allowed read-write I/Os per second.
Use 0 for unlimited I/Os.
Note: Input values are rounded up to the nearest 1000.
|
| --rw-megabytes-per-second | RW_MEGABYTES_PER_SECOND | Number of allowed read-write megabytes per second.
Use 0 for unlimited megabytes. |
| --uuid | Namespace UUID |
Note: Specify either the UUID or NSID. One of the parameters must be specified.
|
| --w-megabytes-per-second | W_MEGABYTES_PER_SECOND | Number of allowed write megabytes per second.
Use 0 for unlimited megabytes. |