1. 22 Feb, 2009 2 commits
    • Iustin Pop's avatar
      A no-code change s/disk/dsk/ · 962367fe
      Iustin Pop authored
      This just makes indendation nicer in many expressions.
    • Iustin Pop's avatar
      Compute the p_mem / p_dsk statically · 0335fe4a
      Iustin Pop authored
      This patch changes the computation of p_mem / p_dsk from on-demand
      (whenever the cluster stats are computed) to after-modify (after a node
      is modified, we update its stats). This brings a god speed-up as only
      one node or two are usually changed between cluster-wide stats are
  2. 15 Feb, 2009 7 commits
    • Iustin Pop's avatar
      Documentation updates · d53264c0
      Iustin Pop authored
    • Iustin Pop's avatar
      Simplify the checkInstanceMove function · 9dc6023f
      Iustin Pop authored
      This patch flattens the two folds into one, by simply building the whole
      list of moves instead  of the double recursion (nodes and the each
      node's moves). This has no functional change, but it's much cleaner.
    • Iustin Pop's avatar
      A small optimization in node computation · 256810de
      Iustin Pop authored
      Currently we always compute the available node list for moves (for an
      instances) based on the nodes of the initial table. This works find,
      however is a repeated calculation.
      We optimize this by passing a node list (of indexes, not full objects),
      which helps in two ways:
        - faster to filter later
        - allows restriction of target nodes by enforcing only this subset as
          target for moves
    • Iustin Pop's avatar
      Container: add a 'keys' function · 1fd47ca2
      Iustin Pop authored
    • Iustin Pop's avatar
      Replace a foldl by foldl' · d4f62d4e
      Iustin Pop authored
    • Iustin Pop's avatar
      Split checkMove into two · 4e25d1c2
      Iustin Pop authored
      This cleans up and splits the individual instance move into a separate function.
    • Iustin Pop's avatar
      Change the balancing algorithm · aaaa0e43
      Iustin Pop authored
      This patch changes the balancing algorithm to not iterate linearly over
      the instances (in a random, but fixed order), instead selecting at each
      step the best next move. This should allow a better score (most of the
      time), and usually also a shorter solution.
  3. 14 Feb, 2009 4 commits
  4. 13 Feb, 2009 4 commits
  5. 12 Feb, 2009 2 commits
    • Iustin Pop's avatar
      Make RAPI return the same data format as gnt-* · b8b9a53c
      Iustin Pop authored
      This patch changes the RAPI endpoint return the same data format as the
      input files. This will allow using it instead of the files.
    • Iustin Pop's avatar
      Change the input file formats · 01f6a5d2
      Iustin Pop authored
      This patch changes the format of the input node and instance lists. It
      removes the list of primary and secondary instances from the nodes, and
      adds the primary and secondary nodes to the instance list.
      This is done so that we can have the same input data from commands as
      from the RAPI.
  6. 11 Feb, 2009 1 commit
  7. 28 Jan, 2009 1 commit