summaryrefslogtreecommitdiffstats
path: root/bin/stack
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-09-30 15:42:38 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-10-04 23:03:43 +0000
commit80e196069fa94edb8981415f9b8d432bbf92888f (patch)
tree79114a9460ee30e07dc565c892738f3cb91fbc6a /bin/stack
parent981f52794ed41b6f25dfc4a25b4b736e8f030a0f (diff)
downloadnova-80e196069fa94edb8981415f9b8d432bbf92888f.tar.gz
nova-80e196069fa94edb8981415f9b8d432bbf92888f.tar.xz
nova-80e196069fa94edb8981415f9b8d432bbf92888f.zip
Restructure host filtering to be easier to use.
The original design for host filtering in the scheduler required the entire filtering process be contained in a single class; contrast this with the design for weighting the hosts, which allowed you to specify a list of functions that would apply various weighting factors to the hosts. This commit modifies the filtering process to resemble the way that the weighting process is designed. Filters can now be small, focused classes, and you specify which filters to apply by setting the 'FLAGS.default_host_filters' flag to a list of the filter classes that match your needs. This is a port of the code from Launchpad, where it was orphaned: https://code.launchpad.net/~ed-leafe/nova/scheduler-multifilter/+merge/72478 Change-Id: I5f3eff6f21409a9f0eddda3392e9ff9d03039ebe
Diffstat (limited to 'bin/stack')
0 files changed, 0 insertions, 0 deletions