<div dir="auto">With 4 physical cpu cores, you'll have 8 with HT so you likely don't need anything managing overcommitting. But you also have memory contention in your design. OpenStack facilitates resource limits to prevent the contention from happening but does not get into managing vm priorities. The assumption I presume is that high priority instances will be placed on high priority hosts where overcommit ratios are safe for the VM's hosted on that machine.<div dir="auto"><br></div><div dir="auto">I know guys don't like to hear this when things are running but you need to reassess what you're doing and rethink the 'why' factor to understand if that level of manual management is really necessary. Remember this is a cloud but your setup is basically complicated pet management. Add another compute host and put your low priority instances on it rather than trying to manage two SLA's yourself. Let OpenStack do it for you. ; )</div><div dir="auto"><br></div><div dir="auto">//adam</div><div dir="auto"><br></div><div dir="auto">All the best.</div><div dir="auto"><br></div><div dir="auto">//adam</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 12, 2017 9:17 AM, "Kostyantyn Volenbovskyi" <<a href="mailto:volenbovsky@yandex.ru">volenbovsky@yandex.ru</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have provided the answer to that on <a href="https://ask.openstack.org/en/question/101374" rel="noreferrer" target="_blank">https://ask.openstack.org/en/<wbr>question/101374</a> where you asked this question as well.<br>
That elaborates slightly on 'There are facilities to allow one VM or another to have CPU priority’ which James mentioned below.<br>
For RAM such things as Memory Tuning <a href="https://libvirt.org/formatdomain.html#elementsMemoryTuning" rel="noreferrer" target="_blank">https://libvirt.org/<wbr>formatdomain.html#<wbr>elementsMemoryTuning</a> is not supported<br>
as well as memory ballooning (which might be part of answer I think) are not supported in Nova.<br>
And well, ‘don’t overcommit RAM’ is often a good principle to stick to.<br>
<br>
<br>
BR,<br>
Konstantin<br>
<div class="elided-text">> On Jan 12, 2017, at 1:33 PM, Ivan Derbenev <<a href="mailto:ivan.derbenev@tech-corps.com">ivan.derbenev@tech-corps.com</a>> wrote:<br>
><br>
> What are the facilities for cpu? That's the initial question - how can I do it if this is possible<br>
><br>
><br>
> Best Regards<br>
> Tech-corps IT Engineer<br>
> Ivan Derbenev<br>
> Phone: <a href="tel:%2B79633431774" value="+79633431774">+79633431774</a><br>
><br>
> -----Original Message-----<br>
> From: James Downs [mailto:<a href="mailto:egon@egon.cc">egon@egon.cc</a>]<br>
> Sent: Thursday, January 12, 2017 12:56 AM<br>
> To: Ivan Derbenev <<a href="mailto:ivan.derbenev@tech-corps.com">ivan.derbenev@tech-corps.com</a>><br>
> Cc: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Subject: Re: [Openstack] Openstack+KVM+overcommit, VM priority<br>
><br>
> On Wed, Jan 11, 2017 at 09:34:32PM +0000, Ivan Derbenev wrote:<br>
><br>
>> if both vms start using all 64gb memory, both of them start using swap<br>
><br>
> Don't overcommit RAM.<br>
><br>
>> So, the question is - is it possible to prioritize 1st vm above 2nd? so the second one will fail before the 1st, to leave maximum possible perfomance to the most importan one?<br>
><br>
> Do you mean CPU prioritization? There are facilities to allow one VM or another to have CPU priority, but what, if a high priority VM wants RAM, you want to OOM the other? That doesn't exist, AFAIK.<br>
><br>
> Cheers,<br>
> -j<br>
><br>
> ______________________________<wbr>_________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
</div></blockquote></div><br></div>