Openstack 虛擬機寬帶限速


參考了網絡上其它朋友的方法。

修改Neutron配置文件,使其支持Qos

修改Neutron.conf

service_plugins = neutron.services.qos.qos_plugin.QoSPlugin

修改plugins/ml2/ml2_conf.ini

[ml2]
extension_drivers=qos

[agent]
extensions=qos

重啟neutron服務

systemctl restart neutron-server.service neutron-linuxbridge-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service

創建一個policy

neutron qos-policy-create test
openstack network qos policy create test

添加限速rule

neutron qos-bandwidth-limit-rule-createbw-limiter --max-kbps 700000 --max-burst-kbps 560000
openstack network qos rule create b67368e8-187b-4777-822c-1af3ed59a59e --max-kbps 20480 --max-burst-kbits 30720 --type bandwidth-limit

綁定Port

neutron port-update <port_id> --qos-policy test
openstack port set 32873801-a55c-4656-8147-0dd1b576d75a --qos-policy b67368e8-187b-4777-822c-1af3ed59a59e

綁定Network

neutron net-update <network_id> --qos-policy test


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM