日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Neutron Metering as a Service (by quqi99)

發布時間:2024/1/18 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Neutron Metering as a Service (by quqi99) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

作者:張華? 發表于:2015-06-10
版權聲明:可以任意轉載,轉載時請務必以超鏈接形式標明文章原始出處和作者信息及本版權聲明

(?http://blog.csdn.net/quqi99?)

1, /etc/neutron/neutron.conf
?? service_plugins = router,metering
?? notification_driver=neutron.openstack.common.notifier.rpc_notifier
2, /etc/neutron/metering_agent.ini
?? debug = True
?? driver = neutron.services.metering.drivers.iptables.iptables_driver.IptablesMeteringDriver
?? measure_interval = 10
?? report_interval = 3330
?? interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
?? use_namespaces = True
3, restart neutron-server and neutron-metering-agent
?? neutron meter-label-rule-create outgoingnet 10.8.0.0/24 --direction egress
?? neutron meter-label-rule-create incomingnet 10.8.0.0/24 --direction ingress --excluded
?? 這樣會生成下列iptables規則,然后可以使用sudo iptables -L -vn -x查看。
?? -I FORWARD -s 10.8.0.0 #egress
?? -I FORWARD -d 10.8.0.0 -j RETURN # ingress
?? 注意,在neutron里需要在namespace里查看:
?? ip netns exec qrouter-77dcb0af-2743-46ce-bf91-a41ac3f3afc1 iptables -t filter -L neutron-meter-FORWARD -vn -x
4, ceilometer,
??? ceilometer statistics --meter bandwidth --period 60 -q 'resource_id=<meter-label-rule-id>'

總結

以上是生活随笔為你收集整理的Neutron Metering as a Service (by quqi99)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。