zoukankan      html  css  js  c++  java
  • 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

    北丐洪七公--Jeff
    Dignity comes from strength, strength comes from struggle!
    本文版权归作者和博客园共有,欢迎转载,未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    css引入方式
    HTML标签
    动态导入模块impoerlib
    pymysql连接数据库
    创建数据库表之引擎
    IO多路复用互动聊天,select函数监听
    欧拉筛法求素数个数
    与三角形相关的问题 WITH 有向面积
    时间复杂度的计算
    折半查找
  • 原文地址:https://www.cnblogs.com/wangyifu/p/7657287.html
Copyright © 2011-2022 走看看