Affinity instance slot reservation

Bug #1630929 reported by daniel.pawlik on 2016-10-06
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Wishlist
daniel.pawlik

Bug Description

Currently ServerGroupAffinityFilter schedules all instances of a group on the same host, but it doesn't reserve any slots for future instances on the host.

Example:
max_instances_per_host=10
quota_server_group_members=5

When user_1 would spawns 3 instances with affinity server group policy, all the instances will be scheduled on the same host (host_A).
If user_2 also spawns instances and they are placed on host_A, quota of max_instances_per_host will be reached, so user_1 can not add 2 new instances to the same server group and error "No valid host found" will be returned.

My proposition is to add new parameters to nova.conf to configure ServerGroupAffinityFilter:
- enable_slots_reservation (Boolean)
- reserved_slots_per_instance (-1 will count difference between max_instances_per_host and quota_server_group_members ; values bigger than 0 will reserve the indicated number of ports per group)

Nova scheduler checks if on a host there are any instances with affinity policy and based on that, it counts available slots.

Sylvain Bauza (sylvain-bauza) wrote :

Nova doesn't have (yet) in its scope to manage instance allocations and that really looks like a new feature that should be discussed in a spec.

http://docs.openstack.org/developer/nova/process.html#how-do-i-get-my-code-merged

Changed in nova:
status: New → Opinion
importance: Undecided → Wishlist

Fix proposed to branch: master
Review: https://review.openstack.org/389216

Changed in nova:
assignee: nobody → daniel.pawlik (daniel-pawlik)
status: Opinion → In Progress

Change abandoned by Daniel Pawlik (<email address hidden>) on branch: master
Review: https://review.openstack.org/389216

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers