Commit c984a7c1 authored by Antoine Millet's avatar Antoine Millet
Browse files

Allocator now prefer to fill an hypervisor

(instead of spreading VM across less used hypervisors)
parent d91427e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ class HaveEnoughCPU(Filter):

    def sorter(self, candidate):
        try:
            return float(candidate.get('cpuallocratio'))
            return -float(candidate.get('cpuallocratio'))
        except ValueError:
            return float('inf')