[one-users] Quota for vCPU

Carlos Martín Sánchez cmartin at opennebula.org
Fri Aug 1 07:32:07 PDT 2014


Hi,

On Fri, Aug 1, 2014 at 8:34 AM, Ondrej Hamada <ondrej.hamada at acision.com>
wrote:

>  Some sort of vCPU quota might be good idea in case the users are allowed
> to create their own templates. They are able to rise the count of vCPU sky
> high if their app goes too slow. In KVM the vCPU presents the number of
> threads the virtual machine could use. Setting too many vCPUs for several
> VMs on a same host might kill the hypervisor because of the context
> switching.
>
> Ondra
>
>
True. Maybe it's too restrictive, but you can disable VCPU for end users
with the vm restricted attributes [1] and set a default in the driver [2].

Regards

[1]
http://docs.opennebula.org/4.6/administration/references/oned_conf.html#restricted-attributes-configuration
[2]
http://docs.opennebula.org/4.6/administration/virtualization/kvmg.html#default-attributes

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org |
@OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>




>
> On 07/28/2014 12:16 PM, Carlos Martín Sánchez wrote:
>
> Hi,
>
>   On Tue, Jul 22, 2014 at 12:04 PM, Mateusz Skała <
> mateusz.skala at budikom.net> wrote:
>
>> Hi,
>> It is possible to set up quota for vCPU? I see only quota for CPU.
>
>
>  No, it's not possible, but it does not matter because the vCPU is
> virtual. It does not mater if a user defines 1 or 10 vCPU, the amount of
> physical host cpu assigned to the VM is determined by the CPU attribute.
>
>  Regards.
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
>  | @OpenNebula <http://twitter.com/opennebula>
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
> ------------------------------
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only. It may contain proprietary material, confidential
> information and/or be subject to legal privilege. It should not be copied,
> disclosed to, retained or used by, any other party. If you are not an
> intended recipient then please promptly delete this e-mail and any
> attachment and all copies and inform the sender. Thank you for
> understanding.
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140801/97e3b753/attachment.htm>


More information about the Users mailing list