首页 > 代码库 > Neutron 集成 DPDK

Neutron 集成 DPDK

这里介绍Neutron集成DPDK时,Neutron相关的配置,计算节点用DPDK加速【虚机到OVS, 物理网卡到OVS】

neutron-openvswitch-agent +DPDK

Compute Node:

 1 # 配置 /etc/neutron/plugins/ml2/openvswitch_agent.ini
 2 ##为加速Overlay, 物理网卡加入br-tun, IP配置到br-tun
 3   
 4 [ovs]
 5 vhostuser_socket_dir = /var/run/openvswitch/
 6 datapath_type = netdev
 7 bridge_mappings = physnet1:br-eth1
 8 tunnel_bridge = br-tun
 9 local_ip = 192.168.200.132
10 of_interface = ovs-ofctl

 

创建虚机

     OVS-DPDK uses hugepages to communicate with guests, before you boot a VM with OVS-DPDK you will need to create a flavor that requests hugepages.

     nova flavor-key <FLAVOR> set hw:mem_page_size=large

Neutron 集成 DPDK