Skip to content
Snippets Groups Projects
  1. Mar 21, 2009
    • Iustin Pop's avatar
      Add node memory field to Node objects · 04be800a
      Iustin Pop authored
      This patch adds a new n_mem field to the node objects, and implements
      read/save/show support for it. The field is not currently used (except
      in the node list) but will be used for checking data consistency and
      instance up/down status.
      04be800a
    • Iustin Pop's avatar
      Pass actual types to node/instance constructors · 47a8bade
      Iustin Pop authored
      This patch changes the parameters passed to the node and instance
      constructors from generic Strings (which are then parsed via “read”) to
      the actual used types, by converting them earlier in Cluster.loadData.
      47a8bade
    • Iustin Pop's avatar
      Small change in hscan · 670b57ad
      Iustin Pop authored
      This fixes a mistake between Int/Integer. Should be more careful :)
      670b57ad
    • Iustin Pop's avatar
      Add hscan to Makefile · 127e0396
      Iustin Pop authored
      127e0396
    • Iustin Pop's avatar
      Add the hscan tool · 1b7a5835
      Iustin Pop authored
      This patch adds an hscan tool that loads data from clusters via RAPI and
      writes it to files that can be later used offline.
      1b7a5835
    • Iustin Pop's avatar
      Some small changes in preparation for hscan · 7847a037
      Iustin Pop authored
      This patch does some small changes:
        - fixes a comment
        - export more node functions (unneeded now, but hscan will use them)
        - fixes Makefile rule for building the programs
      7847a037
    • Iustin Pop's avatar
      Add a separate type for the [(Int, String)] list · 740ec004
      Iustin Pop authored
      This is added for better readability, since this is very often used in
      declarations.
      740ec004
    • Iustin Pop's avatar
      Handle correctly offline nodes in cluster scoring · 19777638
      Iustin Pop authored
      This patch changes two things with regard to offline nodes:
        - first, it only calculates the various coefficients across online
      	nodes
        - second, it adds a new score denoting the percentage of instances
      	which live on such nodes
      
      The first change allows correct score computation in presence of offline
      nodes (whose properties we don't need to take into account), while the
      second change actively evacuates offline nodes.
      19777638
    • Iustin Pop's avatar
      Show offline nodes in the node status list · 352806f7
      Iustin Pop authored
      This patch adds a new ‘-’ flag for the node status which denotes offline
      nodes.
      352806f7
  2. Mar 20, 2009
  3. Mar 16, 2009
  4. Mar 14, 2009
  5. Mar 13, 2009
    • Iustin Pop's avatar
      Some more docstring updates · 00b51a14
      Iustin Pop authored
      00b51a14
    • Iustin Pop's avatar
      Enhance the command list for the solution · 142538ff
      Iustin Pop authored
      This patch moves the formatting of the command list to Cluster.hs and
      enhances it with separator messages between the steps.
      142538ff
    • Iustin Pop's avatar
      Add a new ReplaceAndFailover move · 79ac6b6f
      Iustin Pop authored
      This patch adds a new replace secondary and failover move (equals to
      “r:x f”), which can improve the solution (since we are testing more
      options at each step).
      79ac6b6f
    • Iustin Pop's avatar
      Some whitespace changes · fd934a28
      Iustin Pop authored
      Aligned the comments in Instance.hs
      fd934a28
    • Iustin Pop's avatar
      Convert hbal from multiple rounds to a step-method · 7dfaafb1
      Iustin Pop authored
      Currently hbal does multiple rounds, stopping when a rounds doesn't
      bring improvements. With the recent changes to not remove instances from
      the candidate list, this is obsolete as the first round will always run
      to the end of the improvements.
      
      This patch changes this so that the Cluster.checkMove function doesn't
      recurse, but just computes the next best move (as its docstring says).
      This means we can actually incrementally compute and print the solution,
      and this is needed as otherwise an instance could move twice and the
      second time it needs the current placement to compute the exact command
      line and operation needed for the move.
      7dfaafb1
    • Iustin Pop's avatar
      Rework the solution printing in Cluster.hs · ca8258d9
      Iustin Pop authored
      This abstracts the individual placement solution so that it can be used
      independently.
      ca8258d9
  6. Mar 12, 2009
  7. Mar 11, 2009
Loading