What's the status about Instance Resource Quota now ??

Asked by li,chen

Hi list,

I find a page on wiki : https://wiki.openstack.org/wiki/InstanceResourceQuota
It is said we can set CPU, disk IO and bandwidth consumption limit for instances

But the blueprint page returns error, while the patch is abandoned in early last year.

Anyone can help me to know the current status about this ?

I also get a fixed bug : https://bugs.launchpad.net/nova/+bug/1185030
Looks like network bandwidth can be limited by flavor.
Is there any guide can help me find out the operation steps ??

Thanks.
-chen

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
li,chen
Solved:
Last query:
Last reply:
Revision history for this message
Liping Mao (limao) said :
#1

Hi chen,

I tested Network IO n Instance Resource Quota before, and here is the result and my config
http://blog.csdn.net/matt_mao/article/details/15339729

For CPU IO and Disk IO, I have not tested them. Maybe need to double check the source code.

Revision history for this message
Liping Mao (limao) said :
#2

Hi Chen,

I check the source for Disk IO / CPU, it seems that we alread have the code for InstanceResourceQuota

Disk IO: https://github.com/openstack/nova/blob/master/nova/virt/libvirt/imagebackend.py#L147-158
CPU: https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L3012-3019

I have not tested CPU and Disk IO, but I think the config is similar to network IO.

Revision history for this message
li,chen (chen-li) said :
#3

Thanks, I will have a try later.

Revision history for this message
Liping Mao (limao) said :
#4

I test this feature in havana release. In summary, Instance Source Quota support the following thing now:
CPU:
quota:cpu_shares
quota:cpu_period
quota:cpu_quota

Network IO:
quota:vif_inbound_average
quota:vif_inbound_peak
quota:vif_inbound_burst
quota:vif_outbound_average
quota:vif_outbound_peak
quota:vif_outbound_burst

Disk IO:
seems like qemu have bug now, when I boot VM ,I get some error.