<div dir="ltr">There is already a similar blueprint about limit instance resource usage <a href="https://blueprints.launchpad.net/nova/+spec/quota-instance-resource">https://blueprints.launchpad.net/nova/+spec/quota-instance-resource</a><div>
<br></div><div style>my option is expose the cpu_share and cpu_period to user ,so it can be more flexable to implement variable policy.</div><div style>this BP contains cpu and block IO usage control through cgroup and  bandwidth control through traffic control.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/14 Alex Glikson <span dir="ltr"><<a href="mailto:GLIKSON@il.ibm.com" target="_blank">GLIKSON@il.ibm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="sans-serif">Dear all,</font>
<br>
<br><font face="sans-serif">We have started working on implementation
of CPU reservation/entitlement mechanism in Nova (</font><a href="https://blueprints.launchpad.net/nova/+spec/cpu-entitlement" target="_blank"><font face="sans-serif">https://blueprints.launchpad.net/nova/+spec/cpu-entitlement</font></a><font face="sans-serif">).</font>
<br><font face="sans-serif">The idea is to allow associating explicit
CPU allocation guarantees, in a more flexible way than it is done today
in CoreFilter -- the user/admin will be able to define different CPU allocation
guarantees for different instances. The approach we are taking is to use
extra_specs of instance types to indicate the desired level of CPU allocation
guarantees per vCPU (e.g., low=25% of a physical CPU, normal=50%, high=100%),
which would apply to all instances created from the corresponding type.
This fits nicely the resource model of most of the hypervisors, which have
support for CPU guarantees built-in. For KVM, we are implementing the allocation
guarantees using cpu shares in cgroups (by controlling the cpu shares of
each instance and the total amount of shares allocated on a host). You
can find more details in the wiki page linked from the blueprint.</font>
<br>
<br><font face="sans-serif">Would appreciate thoughts whether the
approach we are taking makes sense, or any other feedback.</font>
<br>
<br><font face="sans-serif">Thanks!</font>
<br><font face="sans-serif">Alex</font>
<br><font face="sans-serif"><br>
<br>
--<br>
Alex Glikson<br>
IBM Research</font>
<br><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Yaguang Tang
</div>