virtual machine priority

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

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. https://ask.openstack.org/en/question/101374/openstackkvmovercommit-vm-prioritization/ (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

Comments

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 -0600 )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 -0600 )edit