scheduler: schedulers reuse filter/weigher objects

Registered by Hans Lindgren

Scheduler handling of filters/weighers is inefficient and forces them to be
recreated for every single request. This proposes a small change to move the
responsibility of filter/weigher initialization from handlers to schedulers
themself to let these objects be stored and reused.

Blueprint information

Status:
Complete
Approver:
John Garbutt
Priority:
Low
Drafter:
Hans Lindgren
Direction:
Approved
Assignee:
Hans Lindgren
Definition:
Approved
Series goal:
Accepted for kilo
Implementation:
Implemented
Milestone target:
milestone icon 2015.1.0
Started by
Hans Lindgren
Completed by
Hans Lindgren

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/scheduler-optimization,n,z

Addressed by: https://review.openstack.org/134506
    Let schedulers reuse filter/weigher objects

This doesn't need a nova-spec for kilo, approving the blueprint --johnthetubaguy 19th November 2014

Addressed by: https://review.openstack.org/132231
    Cleanup and removal of unused code in scheduler unit tests

Addressed by: https://review.openstack.org/132230
    Pre-load default filters during scheduler initialization

Addressed by: https://review.openstack.org/132229
    Make scheduler filters/weighers only load once

Addressed by: https://review.openstack.org/132228
    Refactor unit tests for scheduler weights

Not enough positive reviews on this code for it to make kilo-1, moving to kilo-2 --johnthetubaguy 17th December 2014

Sorry, we have now hit the non-priority feature freeze for kilo. Please resubmit your spec for the L release. --johnthetubaguy 5th Feb 2015

Now that the one remaining change https://review.openstack.org/132230 has merged, this blueprint is fully implemented.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.