Skip to content
Snippets Groups Projects
  1. Apr 15, 2010
    • Iustin Pop's avatar
      Fix Node hiCpu computation · e87a419f
      Iustin Pop authored
      In case we're not enabling limits, let's restrict this to -1, instead of
      -1 times the number of pcpus.
      e87a419f
    • Iustin Pop's avatar
      Add a new function to compute allocation deltas · 9b8fac3d
      Iustin Pop authored
      Given two cluster states, the new function can answer the following
      questions:
      
      - how much resources currently allocated
      - how much resources finally allocated (delta from above is how much we
        can actually allocate on the cluster)
      - unallocable resources (whatever is left free after the previous step)
      9b8fac3d
    • Iustin Pop's avatar
      Introduce total vcpu tracking in CStats · 86ecce4a
      Iustin Pop authored
      We add a new field that tracks the available virtual cpus (expressed as
      node cpus times the vcpu ratio).
      86ecce4a
  2. Apr 14, 2010
  3. Mar 31, 2010
    • Iustin Pop's avatar
      Fix iallocator crash when no solutions exist · 57587760
      Iustin Pop authored
      Commit 54365762 added an un-guarded `head' call, which crashes with
      “Prelude.head: empty list” when no results exists for the per-instance
      allocation/relocation calls.
      
      This patch fixes this, and also adds another check for an unguarded
      `head' call during parsing of input data.
      (cherry picked from commit e41f4ba0)
      57587760
    • Iustin Pop's avatar
      Fix IAllocator multi-evacuate message · 934c62dc
      Iustin Pop authored
      Since Ganeti passes full host names (not common-suffix-stripped), we
      need to remove the suffix from the evac_nodes keys too. In case one node
      is not part of the cluster, it will lead to a wrong error message, but
      for now it fixes the problem.
      934c62dc
  4. Mar 09, 2010
    • Iustin Pop's avatar
      Fix iallocator crash when no solutions exist · e41f4ba0
      Iustin Pop authored
      Commit 54365762 added an un-guarded `head' call, which crashes with
      “Prelude.head: empty list” when no results exists for the per-instance
      allocation/relocation calls.
      
      This patch fixes this, and also adds another check for an unguarded
      `head' call during parsing of input data.
      e41f4ba0
  5. Feb 26, 2010
  6. Feb 25, 2010
  7. Feb 24, 2010
  8. Feb 23, 2010
  9. Feb 22, 2010
  10. Feb 04, 2010
  11. Feb 03, 2010
  12. Jan 14, 2010
    • Iustin Pop's avatar
      Move instance relocation test upper in the chain · a804261a
      Iustin Pop authored
      Currently we test each instance for relocation in checkMove; however, it
      is a little more clear if we pass only the relocatable instances to
      checkMove. The patch also slightly rewrites (indendation/style) the
      second half of the checkMove function.
      a804261a
    • Iustin Pop's avatar
      Split the balancing function in two parts · 5ad86777
      Iustin Pop authored
      Currently in the balancing function we do two thing:
      
      - take the decision where to do a new balancing round or not
      - and actually computing the balancing round
      
      This is not nice, as the two parts are conceptually separate, so this
      patch splits the decision on whether to descend or not to a new
      function.
      5ad86777
    • Iustin Pop's avatar
      Small update to the Makefile · 210ed839
      Iustin Pop authored
      210ed839
    • Iustin Pop's avatar
      Makefile: Switch from subshell to $(MAKE) -C · 0d478754
      Iustin Pop authored
      It seems that set -e does not affect subshell (only simple commands),
      and thus we don't actually get failures from make check being run in a
      subshell. Rather than trying to handle this better, we remove the
      subshell and invoke make with the required subdirectory.
      0d478754
Loading