Sorting of Scheduler Host Filters for Performance

Registered by Russell Bryant

Scheduler host filters range in how efficient they are when they run. Some hit the database for every host they consider. Others only operate using local data. It is best for performance if we save the more expensive filters for the end where we have eliminated as many hosts as we can using the more efficient filters.

This is to be implemented by adding an attribute to the host filter classes that gives a hint for where it should land in the sort order.

There is no user impact of this change, so no changes to documentation will be needed.

Blueprint information

Status:
Complete
Approver:
Joe Gordon
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Russell Bryant
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Russell Bryant

Related branches

Sprints

Whiteboard

Phil raised some good points in review 55072 that make this BP less useful --jogo

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

Addressed by: https://review.openstack.org/55071
    nit: fix indentation

Addressed by: https://review.openstack.org/55072
    Add sorting of scheduler host filters

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.