1. 06 Nov, 2009 8 commits
    • Iustin Pop's avatar
      Change the Utils.fromObj signature · 262f3e6c
      Iustin Pop authored
      Currently the fromObj function takes a JSON object which is then
      converted into a list of (String, JSValue) in which we make a lookup.
      However, most of the callers of this function call it repeatedly on the
      same object, which means we do the object→list conversion repeatedly.
      
      This patch converts it to take directly the list, and converts its
      callers to do the conversion themselves (and only once).
      
      While this is not in the hot-path today, it would be if we ever were to
      process much data over Luxi (or RAPI), and is a good cleanup in any
      case.
      262f3e6c
    • Iustin Pop's avatar
      Rework the tiered spec output format · a160c28e
      Iustin Pop authored
      a160c28e
    • Iustin Pop's avatar
      A small style change in Node.hs · 12e6776a
      Iustin Pop authored
      This imports PeerMap as P and reindents some lines.
      12e6776a
    • Iustin Pop's avatar
      hspace: show tiered-alloc stats in the output · 83ad1f3c
      Iustin Pop authored
      This is a first attempt to get a readable output of tiered allocation
      stats in hspace's output. Not very nice, but it should be somewhat
      parseable.
      83ad1f3c
    • Iustin Pop's avatar
      hspace: fix stats printing for tiered mode · 189bc08f
      Iustin Pop authored
      189bc08f
    • Iustin Pop's avatar
      Make some CLI options more consistent · 7f4e37f0
      Iustin Pop authored
      Both the simulate and the tiered allocation mode take a machine spec on
      input via a comma-separated list. This patch makes this a little bit
      more consistent (always use disk,ram,cpu in this order).
      7f4e37f0
    • Iustin Pop's avatar
      Implement first version of tiered allocations · fcebc9db
      Iustin Pop authored
      This patch adds the first version of tiered allocations where we
      decrease instance specs on allocation failure and retry the allocation.
      The output is not yet stable and the output changes are not documented
      (yet).
      fcebc9db
    • Iustin Pop's avatar
      Add support for shrinking instance specs · c8db97e5
      Iustin Pop authored
      This patch adds a function that, for some given failure modes, shrinks a
      given instance in the hope that allocation will succeed when retried
      with the new spec.
      c8db97e5
  2. 30 Oct, 2009 3 commits
  3. 21 Oct, 2009 4 commits
  4. 19 Oct, 2009 1 commit
  5. 18 Oct, 2009 7 commits
    • Iustin Pop's avatar
      Change the Container.findByName function · e7724ccc
      Iustin Pop authored
      This patch changes the signature and implementation of the function;
      returning the item makes more sense (saves a lookup later again in the
      container, and applying idx is cheap), and the previous implementation
      was ugly.
      e7724ccc
    • Iustin Pop's avatar
      Some small style fixes · bbd8efd2
      Iustin Pop authored
      bbd8efd2
    • Iustin Pop's avatar
      Simplify the cstats initializer · 8c9af2f0
      Iustin Pop authored
      Since all values are initialized to zero, the exact ordering is not
      important and thus we can use the positional mode for simpler code.
      
      The patch also adds docstrings to the cstats functions.
      8c9af2f0
    • Iustin Pop's avatar
      Simplify Cluster.computeMoves · 668c03b3
      Iustin Pop authored
      Since we now have an actual type for describing the instance moves
      (IMove), it's simpler to convert this into the move description/move
      commands, rather than re-computing the move based on initial and final
      nodes. This makes the shell commands computation and over-Luxi command
      execution use the same method of computation.
      668c03b3
    • Iustin Pop's avatar
      Remove obsolete export · eb2598ab
      Iustin Pop authored
      The ‘Placement’ type has been moved to Types.hs but we kept exporting it
      from Cluster, which is not needed.
      eb2598ab
    • Iustin Pop's avatar
      Generalise the node/instance listing · c5f7412e
      Iustin Pop authored
      This patch introduces a generic formatTable function (based on, and
      similar to the Ganeti one, but different and more FP in style) and
      changes the node and instance listing to it.
      
      The node list (due to the many variables) is still a little bit hackish
      unfortunately…
      c5f7412e
    • Iustin Pop's avatar
      Fix instance listing for non-redundant case · ad6cffe4
      Iustin Pop authored
      ad6cffe4
  6. 16 Oct, 2009 8 commits
  7. 15 Oct, 2009 4 commits
  8. 14 Oct, 2009 5 commits