Neutron QoS 使用
来源:互联网 发布:nba 2k10 mac 编辑:程序博客网 时间:2024/06/05 06:51
Neutron QoS 使用
Neutron Liberty版已经支持openvswitch qos-rate-limiting: http://openvswitch.org/support/config-cookbooks/qos-rate-limiting/,下面我们通过简单的测试介绍其使用:
安装最新neutron和neutronclient
$ git clone https://github.com/openstack/neutron$ cd neutron$ sudo python setup.py install$ cd ..$ git clone https://github.com/openstack/python-neutronclient$ cd python-neutronclient$ sudo python setup.py install
打开qos plugin支持
Neutron Server 节点
/etc/neutron/neutron.conf, service_plugins加入qos如下:service_plugins = router,firewall,lbaas,vpnaas,metering,qos
/etc/neutron/plugins/ml2/ml2_conf.ini, extension_drivers加入qos如下:
[ml2]
extension_drivers = port_security,qosNeutron Agent 节点
/etc/neutron/plugins/ml2/ml2_conf.ini, extensions加入qos如下:[agent]
extensions = qos
安全组设置
我们通过scp来测试qos,所以需要打开安全组tcp 22端口:
$ neutron security-group-rule-create –direction ingress \
–protocol tcp \
–port-range-min 22 \
–port-range-max 22 \
default
创建虚拟机
$ nova boot –image cirros-0.3.4-x86_64-uec –flavor m1.tiny –nic net-id='net-id' --min-count 2 --max-count 2 test$ nova list+--------------------------------------+--------+----------------------------------+--------+------------+-------------+-----------------+| ID | Name | Tenant ID | Status | Task State | Power State | Networks |+--------------------------------------+--------+----------------------------------+--------+------------+-------------+-----------------+| 9cb84a9d-07c7-4453-a01b-ba537dcccff9 | test-1 | 68041545c58c468fa48f9bb0361e536d | ACTIVE | - | Running | test=172.16.1.5 || 8c8d48b6-acd8-43cc-8767-b9e7bb4afa75 | test-2 | 68041545c58c468fa48f9bb0361e536d | ACTIVE | - | Running | test=172.16.1.6 |+--------------------------------------+--------+----------------------------------+--------+------------+-------------+-----------------+
创建QoS规则
$ neutron qos-policy-create --shared test-policyCreated a new policy:+-------------+--------------------------------------+| Field | Value |+-------------+--------------------------------------+| description | || id | 8c399fce-4398-4151-b29f-17d7e55c1670 || name | test-policy || rules | || shared | True || tenant_id | 037efa515b1e44c682fff1a337371962 |+-------------+--------------------------------------+$ neutron qos-bandwidth-limit-rule-create --max-kbps 1000 --max-burst-kbps 100 test-policyCreated a new bandwidth_limit_rule:+----------------+--------------------------------------+| Field | Value |+----------------+--------------------------------------+| id | ad919837-e4d8-4601-b512-e4b3dd1ee655 || max_burst_kbps | 100 || max_kbps | 1000 |+----------------+--------------------------------------+
添加QoS规则至端口
$ neutron port-list|grep 172.16.1| 784afa86-d61e-4f42-87fe-a9994897ea02 | | fa:16:3e:d5:f9:80 | {"subnet_id": "7e9bab79-b451-4c72-88ba-44d7e6f8306a", "ip_address": "172.16.1.1"} || 8c8b9944-c9e1-4343-89e5-03f77c2e058d | | fa:16:3e:58:5d:10 | {"subnet_id": "7e9bab79-b451-4c72-88ba-44d7e6f8306a", "ip_address": "172.16.1.5"} || d760f813-b3d9-4094-a09a-132d2dc58409 | | fa:16:3e:a7:7c:07 | {"subnet_id": "7e9bab79-b451-4c72-88ba-44d7e6f8306a", "ip_address": "172.16.1.6"} || f3bef01e-3667-4ee7-8f52-642f8783b212 | | fa:16:3e:92:e1:16 | {"subnet_id": "7e9bab79-b451-4c72-88ba-44d7e6f8306a", "ip_address": "172.16.1.2"} |$ neutron qos-policy-list+--------------------------------------+-------------+| id | name |+--------------------------------------+-------------+| 8c399fce-4398-4151-b29f-17d7e55c1670 | test-policy |+--------------------------------------+-------------+$ neutron port-update --qos-policy 8c399fce-4398-4151-b29f-17d7e55c1670 8c8b9944-c9e1-4343-89e5-03f77c2e058dUpdated port: 8c8b9944-c9e1-4343-89e5-03f77c2e058d
测试
未完待续……
- Neutron QoS 使用
- neutron的QOS
- Neutron Networking QoS
- neutron-Qos服务介绍
- Openstack Neutron扩展实现细节(QOS)
- 使用tox测试neutron
- QoS
- QoS
- QoS
- qos
- QoS
- QOS
- QOS
- QOS
- neutron
- Neutron
- 使用ingress qdisc和ifb进行qos
- OVS中使用linux的QoS机制
- UNIX环境高级编程之第8章:进程控制-习题
- 关于ios使用NSLocalizedString本地化
- 设计模式2--破解单例
- 数据库数据容量和索引容量查询
- jvm调优参数
- Neutron QoS 使用
- STM32 TIM2通道重映射 PWM 无输出波形
- OC语言-字符串总结
- linux下oracle生成awr报告步骤
- Objective-C中@property的所有属性详解
- java多线程之ThreadLocal
- Expect and TCL mini reference manual
- 华为oj 将真分数分解为埃及分数
- linux DNS配置