[nova][scheduler] - Stack VMs based on RAM
giorgis at acmac.uoc.gr
Tue Apr 16 22:51:48 UTC 2019
thx for looking into this!
The values you are referring to have not been set in “nova.conf” neither at the controller nor at the compute hosts which as far as I understand means that they have their default values and the initial behavior was to spread VMs across hosts.
In order to change that behavior what I have changed are:
but the behavior remained the same without any change since when launching 2VMs the second one always go to the other host that the first is running.
Launching more VMs has the same result.
>> On Wed, 17 Apr 2019 01:15:49 +0300, Georgios Dimitrakakis <giorgis at acmac.uoc.gr> wrote:
>> Is there a way I can further debug this?
>> Setting debug to "true" didn't show a reason why VMs are spreading and
>> which filter is used every time which will make VMs spread.
>> In addition I think that I 've read somewhere that placement does this
>> (stack VMs) by default but have not seen that behavior at all...
>> Any ideas appreciated...
>> P.S: Added the "scheduler" tag to catch more attention from the correct
> I had a look through the code and config options and have not yet found anything that could have caused the default stack behavior to have changed.
> The related config options are:
> * [placement]randomize_allocation_candidates which defaults to False
> * [filter_scheduler]host_subset_size which defaults to 1
> * [filter_scheduler]shuffle_best_same_weighed_hosts which defaults to False
> If you have these set to the defaults, you should be getting stacking behavior. Can you double check whether those options are set (or left as default) properly in your scheduler configs?
>>> in the past I used to stack VMs based on RAM on hosts by putting the
>>> following settings in my nova.conf file:
>>> I have now a Rocky installation and although I have set the above on
>>> my controller node and restarted corresponding services the result
>>> when spawning two VMs (one after another) is still to be distributed
>>> on two different hosts. Seems that the something is missing in order
>>> to override the default behavior.
>>> Any suggestions please?
>>> Best regards,
More information about the openstack-discuss