1. 30 Dec, 2010 1 commit
  2. 20 Dec, 2010 2 commits
    • Iustin Pop's avatar
      Change the Node.group attribute · 10ef6b4e
      Iustin Pop authored
      
      
      Currently, the Node.group attribute is the UUID of the group, as until
      recently Ganeti didn't export the node group properties. Since it does
      so now, we make the following changes (again apologies for a big
      patch):
      
      - we change the group attribute to be an index, similar to the way an
        Instance.pnode and snode attributes point to the parent node(s)
      - on load, we read the group.uuid attribute and we use that to lookup
        the actual group index, from previously-loaded groups info
      - this means that we now first read groups, then read nodes using the
        group info, and then read instances using the node info
      
      This patch leaves a few functions showing the group index (ugly since
      it's htools internal), will be converted later.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      10ef6b4e
    • Iustin Pop's avatar
      Rework the data loader pipelines to read groups · a679e9dc
      Iustin Pop authored
      
      
      This (invasive) patch changes all the loader pipelines to read the node
      groups data from the cluster, via the various backends. It is invasive
      as it needs coordinated changes across all the loaders.
      
      Note that the new group data is not used, just returned.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      a679e9dc
  3. 01 Dec, 2010 2 commits
    • 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
    • Iustin Pop's avatar
      Add a type alias for UUIDs · c4d98278
      Iustin Pop authored
      
      
      This is to pottentially allow easier changes later.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarBalazs Lecz <leczb@google.com>
      c4d98278
  4. 24 Nov, 2010 1 commit
  5. 19 Nov, 2010 1 commit
  6. 25 Feb, 2010 1 commit
  7. 27 Nov, 2009 1 commit
  8. 06 Nov, 2009 1 commit
    • 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
  9. 16 Oct, 2009 1 commit
  10. 18 Aug, 2009 1 commit