[Openstack-operators] resource limiting for instance

Sesso sesso at djsesso.com
Fri Oct 23 05:46:49 UTC 2015


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


More information about the OpenStack-operators mailing list