summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Harris <rick.harris@rackspace.com>2011-05-13 15:36:42 -0500
committerRick Harris <rick.harris@rackspace.com>2011-05-13 15:36:42 -0500
commit68e34c790612f3250bd902cc87a0ab9d3d69abfb (patch)
treeb8cc87473f44c6ebf5ea640fc9c5811feff67d27
parent88b3fa4513ed5cfe2befab692dc3371095f99d98 (diff)
downloadnova-68e34c790612f3250bd902cc87a0ab9d3d69abfb.tar.gz
nova-68e34c790612f3250bd902cc87a0ab9d3d69abfb.tar.xz
nova-68e34c790612f3250bd902cc87a0ab9d3d69abfb.zip
first cut at weighted-sum tests
-rw-r--r--nova/scheduler/zone_aware_scheduler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/scheduler/zone_aware_scheduler.py b/nova/scheduler/zone_aware_scheduler.py
index b3d230bd2..38b395d52 100644
--- a/nova/scheduler/zone_aware_scheduler.py
+++ b/nova/scheduler/zone_aware_scheduler.py
@@ -89,6 +89,8 @@ class ZoneAwareScheduler(driver.Scheduler):
# then weigh the selected hosts.
# weighted = [{weight=weight, name=hostname}, ...]
+ # TODO(sirp): weigh_hosts should also be a function of 'topic' or
+ # resources, so that we can apply different objective functions to it
weighted = self.weigh_hosts(num_instances, specs, host_list)
# Next, tack on the best weights from the child zones ...