Which compute host does nova-schedular pick if there is a tie after "Filtering and Weighing" algorithm?

asked 2017-06-19 09:20:01 -0600

udayutkarsh gravatar image
 Suppose I have 20 compute hosts and there is tie among 5 hosts after "Filtering and Weighing" algorithm. In this case how does nova-schedular act?
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-06-19 10:06:57 -0600

updated 2017-06-19 10:07:41 -0600

In Ocata, I think this is done by this code line:

chosen_host = random.choice(weighed_hosts)

It should be clear what this line does. But of course, there is no guarantee that Pike will be the same.

edit flag offensive delete link more


At this moment it is, but nova is changing the placement/scheduler/cells behaviour. But this last host election is likely to remain as it is for a while. Chose a random node if more than one have the same weight

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-06-19 10:12:12 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-06-19 09:20:01 -0600

Seen: 55 times

Last updated: Jun 19 '17