Ask Your Question
0

How to write a custom nova scheduler

asked 2017-03-28 08:54:39 -0600

I have a little question, when surfing on OpenStack docs, I founded a tutorial about how to write a custom nova scheduler https://docs.openstack.org/ops-guide/ops-customize-compute.html (here).

For my master Thesis I want to write another custom scheduler, but is there somewhere a API about which variables are available, etc?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-03-28 13:30:09 -0600

There is no API, but you can get inspired by looking at the code in .../python2.7/site-packages/nova/nova/scheduler. The nova.scheduler.driver.Scheduler class mentioned in the tutorial is in driver.py. The default scheduler, derived from that class, is defined in filter_scheduler.py, and the various filters are in the filters subdirectory.

edit flag offensive delete link more

Comments

Thanks for the information! I will look into that and write some extra logs for debugging

jmoeyersons gravatar imagejmoeyersons ( 2017-03-28 14:07:36 -0600 )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-03-28 08:54:39 -0600

Seen: 201 times

Last updated: Mar 28 '17