设置性能类的速率

使用 perf_class_set_rate 命令可设置性能类的速率。

perf_class_set_rate perf_class=perfClassName [ max_io_rate=iops ] [ max_bw_rate=bw ]

参数

名称 类型 描述 必需 缺省值
perf_class 对象名 性能类的名称。 不适用
max_io_rate 正整数 按照每个接口模块的 IOPS 指定性能类最大速率 (Mbps)。允许设置的最大速率为 100,000。 如果指定零,则 IOPS 速率不受限制。 保持不变。
max_bw_rate 正整数 指定每个接口模块的性能类最大带宽速率 (MB/s)。允许设置的最大速率为 10,000。如果指定零,则宽带速率不受限制。 保持不变。

必须设置 max_io_rate 和/或 max_bw_rate

指定的速率适用于每个接口模块。要计算每个系统的限制,请将指定的速率乘以接口模块数。

示例:

perf_class_set_rate perf_class=p1 max_io_rate=1000

输出:

Command executed successfully.

访问控制

用户类别 许可权
存储管理员 允许
存储集成管理员 允许
应用程序管理员 不允许
安全性管理员 不允许
只读用户 不允许
技术人员 不允许

返回码

  • PERF_CLASS_BAD_NAME

    性能类不存在。

  • PERF_CLASS_INVALID_RATE

    为性能类设置的速率无效。