Ask Your Question
0

Juno KVM bandwidth quota issue

asked 2015-04-20 03:39:44 -0500

KoSuKe gravatar image

Hi,

I try to create an instance with bandwidth quota, but it doesn't work, I get the same bandwidth with a flavor with quota and without.

I don't see any error or warning in logs.

I create a flavor

nova flavor-create --is-public false limited auto 512 10 2

nova flavor-key limited set quota:vif_inbound_average=1024

nova flavor-key limited set quota:vif_outbound_average=1024

Then I boot an instance with this flavor, and then I run an iperf

Client connecting to XXX.XXX.XXX.XXX, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 208 KByte (default)
-------------------------------------------------------------
[  3] local 192.168.1.106 port 36275 connected with XXX.XXX.XXX.XXX port 5001
[  3] Interval      Transfer        Bandwidth
[  3] 0.0-10.0 sec  1.25MBytes      1.05 Mbits/sec
[  3] Sent 893 datagrams

-

# tc qdisc
qdisc mq 0: dev eth0 root
qdisc mq 0: dev eth1 root
qdisc pfifo_fast 0: dev qvo658149a1-8f root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc pfifo_fast 0: dev qvb658149a1-8f root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
qdisc htb 1: dev tap658149a1-8f root refcnt 2 r2q 10 default 1 direct_packets_stat 0 direct_qlen 500
qdisc sfq 2: dev tap658149a1-8f parent 1:1 limit 127p quantum 1514b depth 127 divisor 1024 perturb 10sec
qdisc ingress ffff: dev tap658149a1-8f parent ffff:fff1 ----------------

-

ii nova-compute-kvm 1:2014.2.2-0ubuntu1~cloud0 all OpenStack Compute - compute node (KVM)
ii libvirt-bin 1.2.2-0ubuntu13.1.9 amd64 programs for the libvirt library
ii nova-compute-libvirt 1:2014.2.2-0ubuntu1~cloud0 all OpenStack Compute - compute node libvirt support
ii openvswitch-switch 2.3.1-0ubuntu1~cloud0 amd64 Open vSwitch switch implementations
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-20 15:44:41 -0500

updated 2015-04-20 15:44:54 -0500

Just curious does the libvirt.xml of the instance you created show something like this in it? If all this fails you could try using cgroups, but that may be overkill.

<bandwidth> <inbound average="1024" peak="5000" floor="200" burst="1024"/> <outbound average="1024" peak="256" burst="256"/> </bandwidth>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-20 03:39:44 -0500

Seen: 291 times

Last updated: Apr 20 '15