-
Committer:
Tarmac
-
Author(s):
kevin.mitchell at rackspace, Kevin L. Mitchell
-
Date:
2011-09-09 22:22:10 UTC
-
mfrom:
(1531.4.6 spread-first)
-
Revision ID:
tarmac-20110909222210-6tzsbtynlskpdw70
Stock zones follows a fill-first methodology—the current zone is filled with instances before other zones are considered. This adds a flag to nova to select a spread-first methodology. The implementation is simply adding a random.shuffle() prior to sorting the list of potential compute hosts by weights.