Passing additional information to the Nova Scheduler

asked 2013-01-10 14:50:45 -0600

I've been investigating the Nova platform with the aim of creating some new scheduling algorithms.

I was hoping that someone might be able to answer a question I have about the nova architecture:

The algorithm I am attempting to construct requires the user to set a flag or option when they request the VM which is then used to influence the scheduling decision.

I'm looking for advise on what would be the best (or most accepted) way of passing a string from the user to the scheduler? My understanding is that everything flows through the API, so would it be sensible to add another parameter to the _create_instance function and have that passed on the scheduler?

Any advice would be very much appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-01-10 17:04:23 -0600

vishvananda gravatar image

This is exactly what the scheduler hints extension does.

nova boot --flavor=1 --image=xxx --hint hint_key=hint_value myvm

edit flag offensive delete link more

answered 2013-01-10 20:31:51 -0600

Thanks very much Vish, this was exactly what I was looking for!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-01-10 14:50:45 -0600

Seen: 54 times

Last updated: Jan 10 '13