From 3a1777f5feeb06841aa5f7800868eef6499e80f7 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 26 Mar 2012 14:33:39 -0700 Subject: [PATCH] Default scheduler to spread-first * Fixes bug 965732 Change-Id: I239b2b235905b30879974144263037eba6ed409f --- nova/scheduler/least_cost.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nova/scheduler/least_cost.py b/nova/scheduler/least_cost.py index 74ea0765..70dc180e 100644 --- a/nova/scheduler/least_cost.py +++ b/nova/scheduler/least_cost.py @@ -39,8 +39,10 @@ least_cost_opts = [ default=1.0, help='How much weight to give the noop cost function'), cfg.FloatOpt('compute_fill_first_cost_fn_weight', - default=1.0, - help='How much weight to give the fill-first cost function'), + default=-1.0, + help='How much weight to give the fill-first cost function. ' + 'A negative value will reverse behavior: ' + 'e.g. spread-first'), ] FLAGS = flags.FLAGS