-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAP: Introduce external scheduler filter #502
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implement using BaseFilter
I think it should be documented (at least in the commit message), why we do not use the usual approach of BaseHostFilter
.
0ee9d1d
to
8fc7c36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also rewrite the history to a single commit please?
c897817
to
bedc095
Compare
Sorry for the piece-meal: Could you also please prefix the commit title with "SAP: "? |
bedc095
to
0ea42f9
Compare
And maybe a slightly more elaborate commit-message as @joker-at-work already asked for. I'd suggest:
|
a94f213
to
ec91341
Compare
43eaccc
to
b52d5c7
Compare
b52d5c7
to
0b35204
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I still would prefer the oslo_versionedobject
serialization, but I am okay with this change.
I tried that. However, the nested python structures aren't serialized correctly. Thus I implemented the current solution. |
nova/tests/unit/scheduler/filters/test_external_scheduler_filter.py
Outdated
Show resolved
Hide resolved
nova/tests/unit/scheduler/filters/test_external_scheduler_filter.py
Outdated
Show resolved
Hide resolved
27311c3
to
384d788
Compare
Review comments were addressed
@PhilippMatthes Could you squash the history and force-push it please? And update the PR that way each time? |
d73d9c1
to
d53c934
Compare
Thanks for taking this further @fwiesel, @joker-at-work, @PhilippMatthes! ❤️ Does the PR look reasonably good to you from Nova perspective to get it merged and deployed to QA? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think that my comments are blockers for this PR. They could happen in a follow-up, if you need this to merge fast. Please have a look and tell me whether to approve now.
43f07a5
to
4819887
Compare
Provides support for an external service that can perform advanced scheduling decisions. SchedulerManager now calls a function call_external_scheduler_api after executing filters and weighers. This function sends the hosts and their current weights to an external scheduling service. This service then performs advanced scheduling decisions and returns the sorted list of host names, from highest priority to lowest priority. To toggle this feature, provide external_scheduler_api_url to Nova's configuration.
4819887
to
f76efba
Compare
Provides support for an external service that can perform advanced scheduling decisions. SchedulerManager now calls a function call_external_scheduler_api after executing filters and weighers. This function sends the hosts and their current weights to an external scheduling service. This service then performs advanced scheduling decisions and returns the sorted list of host names, from highest priority to lowest priority. To toggle this feature, provide external_scheduler_api_url to Nova's configuration. Change-Id: Ibf7d3238c77fa73383ae7d0368a03cc3044409f8 Co-authored-by: PhilippMatthes <[email protected]>
SAP: Introduce an external scheduler filter
Provides support for an external service that can perform advanced scheduling
decisions. SchedulerManager now calls a function call_external_scheduler_api
after executing filters and weighers. This function sends the hosts and their
current weights to an external scheduling service. This service then performs
advanced scheduling decisions and returns the sorted list of host names, from
highest priority to lowest priority. To toggle this feature, provide
external_scheduler_api_url to Nova's configuration.