[Openstack-operators] [Nova][Scheduler] How to filter and pick Host with least number of instances.
Karan
digitalkaran at gmail.com
Fri Oct 7 03:26:02 UTC 2016
Thanks Mikhail for mentioning custom wieghter. Sure I would like to
look at how you've implemented your own weighter. Please share it when
you've it with you. Also, it would be helpful if you can give
pointers on implementing your weighter based on different metrics of
hosts.
On Wed, Oct 5, 2016 at 4:11 PM, Mikhail Medvedev <mihailmed at gmail.com> wrote:
> Hi Karan,
>
> On Sep 22, 2016 19:19, "Karan" <digitalkaran at gmail.com> wrote:
>>
>> Hi
>>
>> Is it possible to configure openstack scehduler to schedule instances
>> to a host with least number of instances running on it?
>> When multiple hosts are eligible to spawn a new instance, scheduler
>> applies weight multipliers to available RAM and CPU and pick one host.
>> Is there a way to ask scheduler to pick a Host with least number y of
>> instances on it.
>>
>
> Yes, there is a way to select a host with the least number of instances. It
> can be done by writing a custom weighter that returns negated number of
> instances as host weight. I wrote an implementation that has been used for a
> while in our test cloud, but I am not going to be able to share it until
> next week. Let me know if you still need it by then.
>
>>
>> Thanks
>> Karan
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
> --
> Mikhail Medvedev (mmedvede)
> IBM, OpenStack CI for KVM on Power
More information about the OpenStack-operators
mailing list