前提
centos7 + qemu-2.x ( centos 默認版本)
openstack icehourse (其他版本同理)
ceph 後端存儲
目的
假如不限制 ceph io , 則一兩個用戶進行無限制數據 IO 壓測使用, 則可以打爆整個 CEPH 集羣
避免資源搶奪, 充分合理使用 IO 資源
QOS 限制方法
cgrloup
cgroups blkio控制器支持塊設備上的I/O限制,但這是一個相對較新的特性
暫時不被當前版本 openstack 支持
參考了網絡網站, 從性能角度上看,沒有 qemu 好qemu
QEMU包含了一個 throttling 模塊,可以用來設置I/O操作
可用於限制每秒字節數以及執行磁盤I/O時的每秒操作數(IOPS)
磁盤I/O的兩個方面是有限的:
支持六個不同的參數
total_bytes_sec: the total allowed bandwidth for the guest per second
read_bytes_sec: sequential read limitation
write_bytes_sec: sequential write limitation
total_iops_sec: the total allowed IOPS for the guest per second
read_iops_sec: random read limitation
write_iops_sec: random write limitation