1. 10 Jan, 2011 3 commits
  2. 07 Jan, 2011 8 commits
  3. 30 Dec, 2010 20 commits
  4. 23 Dec, 2010 7 commits
  5. 20 Dec, 2010 2 commits
    • Iustin Pop's avatar
      IAllocator: respect the alloc_policy for groups · 73206d0a
      Iustin Pop authored
      This patch changes the allocate mode to respect the alloc_policy for
      groups. It does this by changing the sort key from simply the solution
      score, to a tuple with two elements: the alloc policy (which is now an
      Ord instance) and the solution score. Also, the unallocable groups are
      filtered out in the filterMGResults phase.
      
      The patch also slightly enhances the informational message by
      including the policy in the group information, to help debugging.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      73206d0a
    • Iustin Pop's avatar
      hail: allow overriding cluster data from requests · 01fec0a1
      Iustin Pop authored
      Currently, it's not easy to generate “fake” IAllocator request files
      for hail. As such, testing on simulated clusters is hard to do.
      
      To workaround this, we change hail to also take the ‘-t’ and
      ‘--simulate’ options, so that we can override the cluster data read
      from the request. Note that this will not change the request itself
      (so for example an evacuation will need to make sure uses the correct
      node names), but it's a step forward in testing hail. The other tools
      already can use text files which allow for better flexibility.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      01fec0a1