1. 30 Dec, 2010 4 commits
  2. 23 Dec, 2010 7 commits
  3. 20 Dec, 2010 19 commits
  4. 15 Dec, 2010 1 commit
    • Iustin Pop's avatar
      Update hscolour usage · 133f1791
      Iustin Pop authored
      
      
      This patch fixes two issues related to coloured sources generation.
      First, recent hscolour has changed the css file (and we need to update
      it), but it also can output it at runtime, so there's no need to store
      it anymore in the source tree.
      
      Second, the current source generation predates the addition of sources
      in Ganeti/ (as opposed to just Ganeti/HTools), and thus we were missing
      the sources in that directory. We replace the target file name to
      account for different base directories.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      133f1791
  5. 09 Dec, 2010 5 commits
  6. 01 Dec, 2010 4 commits
    • Iustin Pop's avatar
      Cleanup AllocSolution after AllocElement changes · a334d536
      Iustin Pop authored
      
      
      Since we added the score to AllocElement, we don't need to wrap
      AllocElement in yet another tuple, just to attach the cluster score. So
      we simplify the AllocSolution type.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      a334d536
    • Iustin Pop's avatar
      AllocElement: extend with the cluster score · 7d3f4253
      Iustin Pop authored
      
      
      AllocElement, a type used as a result of allocations, holds the status
      of the nodes after the allocation. In most cases, we'll compare this
      allocation result with others, to see which allocation decision makes
      the most sense. This comparison is done via the cluster score.
      
      However, if we later need to redo this computation, as part of other
      comparisons, we'd need to evaluate it again, etc. So it's easier to just
      compute the score at the place where we compute the node list in the
      initial step.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      7d3f4253
    • Iustin Pop's avatar
      Add two utility functions for the Result type · 06fb841e
      Iustin Pop authored
      
      
      Actually, this just moves the functions from the QC module to Types, and
      removes a duplicate entry from Cluster.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      06fb841e
    • Iustin Pop's avatar
      Rework the types used during data loading · 99b63608
      Iustin Pop authored
      
      
      This improves on the previous change. Currently, the node and instance
      lists shipped around during data loading are (again) association lists.
      For instances it's not a big issue, but the node list is rewritten
      continuously while we assign instances to nodes, and that is very slow.
      The code was originally written for small (10-20 node) clusters, and
      today with multinodes… :)
      
      Rewriting to use Node.List/Instance.List makes a bit of a messy patch,
      but it allows to remove some custom functions for assoc. list
      processing, and also some custom unittests.
      
      At the end, the load time is almost halved, and we spend time now just
      in the string parsing code (which is, as we know, slow…).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      99b63608