Max_unit should account for allocation_ratio
Bug #1707085 reported by
Ying Zuo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
It's great that the Placement API v1.4 provides a way to query for hosts that can fulfill a set of allocations. However, because the max_unit doesn't account for allocation_ratio, the result is not as expected.
For example, my host has a total of 4 vCPU and 2 vCPU have been allocated. cpu_allocation_
Self over allocating VCPUs is not a good idea. If your machine only has 4 CPUs and you expose that as 5 CPUs to a guest, you'll get pathologically bad performance as the guest tries to optimize workloads across those, which are causing cache flushes in the CPUs below.
Definitely in the Won't Fix category