Ask Your Question
0

How to restrict bandwidth for instances?

asked 2015-10-21 19:18:11 -0500

5-jason-h gravatar image

updated 2015-10-21 19:37:53 -0500

I am trying to limit my instance to 10MB/s and its not being limited. My flavor is here:

extra_specs                | {"quota:disk_read_bytes_sec": "10485760", "quota:disk_write_bytes_sec": "10485760", "quota:vif_outbound_average": "10240", "quota:vif_inbound_average": "10240"} |

libvirt.xml

 <model type="virtio"/>
      <source bridge="qbr528f9bf0-f5"/>
      <target dev="tap528f9bf0-f5"/>
      <bandwidth>
        <inbound average="10240"/>
        <outbound average="10240"/>
      </bandwidth>
    </interface>

Here are results of a speed test on the instance.

debian# ./speedtest-cli 
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Cwie, LLC (64.xx.xx.xx)...
Selecting best server based on latency...
Hosted by Phoenix NAP AZ Data Center (Tempe) [3.53 km]: 1.862 ms
Testing download speed........................................
Download: 78.27 Mbit/s
Testing upload speed..................................................
Upload: 164.18 Mbit/s

Is there a configuration that needs to be set on my deployment?

My nova-compute.conf on the compute node.

cat /etc/nova/nova-compute.conf 
[DEFAULT]
compute_driver=libvirt.LibvirtDriver
neutron_ovs_bridge=br-int
[libvirt]
virt_type=kvm
vif_driver=nova.virt.libvirt.vif.LibvirtGenericVIFDriver
use_virtio_for_bridges=true
# This may be needed for 
#cpu_mode=host-passthrough
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-23 06:59:36 -0500

Vinoth gravatar image

Liberty release have options for bandwidth control.

edit flag offensive delete link more

Comments

People have talked about using it since icehouse.

5-jason-h gravatar image5-jason-h ( 2015-10-23 23:30:53 -0500 )edit

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-10-21 19:18:11 -0500

Seen: 465 times

Last updated: Oct 23 '15