[Openstack-operators] [Nova][Scheduler] How to filter and pick Host with least number of instances.

Mikhail Medvedev mihailmed at gmail.com
Wed Oct 5 20:11:38 UTC 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20161006/eb0676c8/attachment.html>


More information about the OpenStack-operators mailing list