virtual machine priority

asked 2019-01-03 09:43:11 -0500

sanjay khuntia gravatar image

Hello Experts, I have a situation where I have to calculate/set the priority of VMs in the existing openstack environment which is using liberty version of openstack release. Say, in a blade there are few dev, QA and test VMs. Out of these 3 types of VMs I want to set higher priority to Dev VMs compared to QA's or Test VMs so that whenever there is resource crunch and when both Dev VM and QA VM requests comes at a same time to launch, the compute environment should calculate internally to give/allocate resources to Dev VM to launch it and keeps the priority of QA vm low which can be launched later.

Is there any existing facility available in compute schedulers or in recent openstack releases which can prioritize VM allocation/scheduling for different types of users?

I can find one such discussion on this link, but it is not helping much. (link text)

Please let me know your suggestions in this as I am new to openstack environment. thanks in advance for your replies.

best rgds, Sanjay

edit retag flag offensive close merge delete


You can prioritize instances indirectly using flavors. You can map flavors to host aggregates, for example flavors for fast servers (e.g. fast CPUs, SSDs). You can also create flavors that provide more CPUs and RAM to an instance.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-03 19:48:18 -0500 )edit

Other methods to improve instance performance are huge pages or CPU pinning (see the admin guide), but there is no such thing as a relative priority number like the UNIX nice value.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-03 19:50:20 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2019-01-28 00:25:28 -0500

sanjay khuntia gravatar image

Hi Bernd, thanks for your reply. using flavors will not help much in my case. I want to have prioritization of VMs in compute node in openstack like what VMware have features like Resource pools and VM Shares concept implemented in its products.

please let me know whether this kind of features is already implemented in openstack compute through any open source tools or in newer openstack versions or is there any plan in the offing to make it available in the later openstack versions?

thanks in advance for the reply. regards

edit flag offensive delete link more


If I understand the Vmware concepts of resource pools and shares correctly, I don't think OpenStack has resource control of that sort.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-28 01:00:47 -0500 )edit

after searching more on this I found these 2 in nova specs-

any idea on this can help me a lot. thanks

sanjay khuntia gravatar imagesanjay khuntia ( 2019-02-11 23:54:05 -0500 )edit

The first one implements resource limits for VMs running on ESX, the second one changes the parameters used to configure the RAM, CPU and disk overbooking of compute hosts. They don’t look like they help with your requirement.

Bernd Bausch gravatar imageBernd Bausch ( 2019-02-12 04:31:31 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-01-03 09:43:11 -0500

Seen: 187 times

Last updated: Jan 03 '19