1. 23 Mar, 2009 2 commits
    • Iustin Pop's avatar
      More documentation updates · 6ef35e3c
      Iustin Pop authored
      This removes most of the content of the README file (obsoleted by new
      algorithm and man pages), modifies the Makefile to include the built
      documentation in the source archive (so that haddock/hscolour are not
      needed) and updates the haddock-prologue with current information.
      6ef35e3c
    • Iustin Pop's avatar
      More man page updates · d0003b35
      Iustin Pop authored
      This moves some data from README to the man pages and has other general
      improvements.
      d0003b35
  2. 22 Mar, 2009 11 commits
    • Iustin Pop's avatar
      Add checks for missing disk space · 9cded5d3
      Iustin Pop authored
      This small patch adds disk space checks to the Cluster.checkData
      function, and simplifies a little the warning messages.
      9cded5d3
    • Iustin Pop's avatar
      Include DRBD overhead in sda/sdb size · 190ce47c
      Iustin Pop authored
      For Ganeti 1.2 which doesn't have the ‘disk_usage’ instance query field,
      we need to manually include the DRBD overhead (per disk). This patch
      modifies the RAPI collection to do this, but loading from disk does not
      as it's unknown if the query came from hscan or RAPI 1.2 or RAPI 2.0...
      190ce47c
    • Iustin Pop's avatar
      Documentation updates · d2ac5526
      Iustin Pop authored
      This patch adds a man page for hscan and updates the README and other
      man pages with the latest changes.
      d2ac5526
    • Iustin Pop's avatar
      Update all needed node fields on f_mem change · 0ee8fd76
      Iustin Pop authored
      This fixes the setFmem function which didn't compute other related
      fields after free memory change. Ideally, this should be abstracted so
      that add/remove Pri and similar functions could reuse it instead of
      duplicating code.
      0ee8fd76
    • Iustin Pop's avatar
      Fix interaction between down instances and nodes · 53f00b20
      Iustin Pop authored
      If an instance is down, it's memory is not reflected in the node used
      memory, and thus the node free memory is higher than the actual value.
      This patch deducts the memory for such instances from the node free
      memory, allowing a correct calculation for such cases.
      53f00b20
    • Iustin Pop's avatar
      Add a new instance field denoting run status · f82f1f39
      Iustin Pop authored
      This patch modifies Rapi, the Cluster.loadData and hscan serialization to load
      and save the instance run status. At instance level, we add both a boolean
      field denoting the true/false run status, and a string field which holds the
      original value (since we don't have a 1-to-1 mapping) for use in hscan
      serialization.
      
      The run status is not yet used.
      f82f1f39
    • Iustin Pop's avatar
      Show the x_mem/i_mem in node list · a1c6212e
      Iustin Pop authored
      This patch adds checking of cluster data in the binaries and display of
      node's x_mem/i_mem in the node list.
      a1c6212e
    • Iustin Pop's avatar
      Add functions to check and fix cluster data · 5d1baf63
      Iustin Pop authored
      This patch adds a checkData function which goes over the node list and computes
      the unaccounted memory, returning a list of warning messages (if any) and the
      update nodes.
      5d1baf63
    • Iustin Pop's avatar
      Add a new node filed x_mem · 8c5b0a0d
      Iustin Pop authored
      Nodes can have some memory unaccounted for, due to (e.g.) hypervisor
      overhead, rounding errors in reporting, etc.
      
      It is better if we model this memory explicitly instead of hiding it,
      and actually since the n_mem addition it is actually required to do so.
      
      The new attribute is not yet used.
      8c5b0a0d
    • Iustin Pop's avatar
      Split common CLI functionality into a module · 209b3711
      Iustin Pop authored
      This patch moves the common CLI functionality (as much as currently
      possible) into a separate module. This means we only have one parseOpts
      and that Utils.hs doesn't keep this kind of functions anymore.
      209b3711
    • Iustin Pop's avatar
      Remove unused and obsolete function · 6e75a445
      Iustin Pop authored
      The Node.str function is very old and is not useful since the node
      objects have much more fields today. This patch removes it, and if
      needed a full node display can be done via ‘show’.
      6e75a445
  3. 21 Mar, 2009 9 commits
    • 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
  4. 20 Mar, 2009 9 commits
  5. 16 Mar, 2009 1 commit
  6. 14 Mar, 2009 8 commits