Ask Your Question
0

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

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

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
1

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

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

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

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 30 times

Last updated: Jun 19 '17