- Mar 22, 2009
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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’.
-
- Mar 21, 2009
-
-
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.
-
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.
-
Iustin Pop authored
This fixes a mistake between Int/Integer. Should be more careful :)
-
Iustin Pop authored
-
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.
-
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
-
Iustin Pop authored
This is added for better readability, since this is very often used in declarations.
-
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.
-
Iustin Pop authored
This patch adds a new ‘-’ flag for the node status which denotes offline nodes.
-
- Mar 20, 2009
-
-
Iustin Pop authored
This patch changes the Cluster.checkInstanceMove function to restrict the target move list based on which nodes are online.
-
Iustin Pop authored
This patch modifies hbal (only, hn1 not yet) for setting nodes offline.
-
Iustin Pop authored
This patch adds a new node attribute - offline - which will serve to skip nodes from the target candidate list.
-
Iustin Pop authored
-
Iustin Pop authored
-
Iustin Pop authored
-
Iustin Pop authored
-
Iustin Pop authored
This will enhance the ‘dist’ rule by skipping unneeded files.
-
Iustin Pop authored
The modules are moved from the ‘top’ namespace to ‘Ganeti.HTools’, in compliance with standard practices.
-
- Mar 16, 2009
-
-
Iustin Pop authored
-
- Mar 14, 2009
-
-
Iustin Pop authored
This patch moves the version string creation into a function in Utils which shows some more information.
-
Iustin Pop authored
A new man page and typos fixed in hbal.1.
-
Iustin Pop authored
-
Iustin Pop authored
This patch adds a -V, --version command line option that shows the program version and also updates the hn1 usage string (similar to hbal).
-
Iustin Pop authored
This just reorders some functions for a more logical ordering.
-
Iustin Pop authored
This patch changes the solution list to include a step counter so that it's more clear these are successive steps (in a definite order), and not just an unordered list of changes.
-
Iustin Pop authored
This patch changes the gnt-instance failover to migrate, and fixes a bug in the formatting of commands.
-
Iustin Pop authored
This patch added a verbose output and changed the output so that by default it is less verbose and more clear.
-
Iustin Pop authored
This patch adds a new instance move, FailoverAndReplace, which promotes the old secondary to primary and then uses a new secondary node. This is the last move that we can do within the limitations of one node changed per move.
-
- Mar 13, 2009
-
-
Iustin Pop authored
-
Iustin Pop authored
This patch moves the formatting of the command list to Cluster.hs and enhances it with separator messages between the steps.
-
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).
-
Iustin Pop authored
Aligned the comments in Instance.hs
-