Weigh hosts by their number of instances

Registered by Sylvain Bauza

Since weighing hosts is difficult when you have heterogenous hardware (since it's difficult to find common metrics you can use as comparison), we propose here a simple NumInstancesWeigher that will compare the hosts based on the reported number of instances.

The change is very minimal since the value of instances is already existing in the scheduler HostState, as we already have a NumInstancesFilter that cuts hosts above a threshold.

Blueprint information

Status:
Complete
Approver:
Sylvain Bauza
Priority:
Undefined
Drafter:
Sylvain Bauza
Direction:
Approved
Assignee:
Sylvain Bauza
Definition:
Approved
Series goal:
Accepted for bobcat
Implementation:
Implemented
Milestone target:
None
Started by
Sylvain Bauza
Completed by
Sylvain Bauza

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/num-instances-weigher

[20230627 bauzas] Approved during today's nova meeting as a specless BP.
Addressed by: https://review.opendev.org/c/openstack/nova/+/886232
    Add a new NumInstancesWeigher

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.