- Nov 24, 2009
-
-
Iustin Pop authored
The tiered allocation output which contains spaces makes the output of hspace non-sourceable. This patch adds a new function to ensure non-alphanumeric values are quoted such that the output can be parsed easily via the shell. The patch also fixes a bug in the DSK_AVAIL key (found after adding the quoting) which added an extra space at the end of these keys.
-
- Nov 10, 2009
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
The text-only version should still be very readable, but the RST output will be better hopefully.
-
Iustin Pop authored
The print nodes option can now accept an optional field list to customise the output. This is ugly, since the field names do not match the header names, but it is at least barely customisable (at runtime).
-
- Nov 09, 2009
-
-
Iustin Pop authored
Also fixes some other small issues in man pages.
-
Iustin Pop authored
This will prepare for the runtime-selectable field list.
-
Iustin Pop authored
This fixed the unbalanced secondary instances on partially empty clusters, and helps in general for the cases where real utilisation data is not available.
-
Iustin Pop authored
-
- Nov 06, 2009
-
-
Iustin Pop authored
Currently the JSON conversion in Rapi and Luxi are giving something like: Error: failed to load data. Details: Unable to read Double This doesn't tell one where the error is (in a node specification? and which node? etc.). This patch annotates such messages with the owner node: Error: failed to load data. Details: Node 'node1' key 'mtotal': Unable to read Double For errors during parsing of the node/instance name (unlikely, but still), the output is: Error: failed to load data. Details: Parsing new node key 'name': Unable to read String
-
Iustin Pop authored
Currently the fromObj function takes a JSON object which is then converted into a list of (String, JSValue) in which we make a lookup. However, most of the callers of this function call it repeatedly on the same object, which means we do the object→list conversion repeatedly. This patch converts it to take directly the list, and converts its callers to do the conversion themselves (and only once). While this is not in the hot-path today, it would be if we ever were to process much data over Luxi (or RAPI), and is a good cleanup in any case.
-
Iustin Pop authored
-
Iustin Pop authored
This imports PeerMap as P and reindents some lines.
-
Iustin Pop authored
This is a first attempt to get a readable output of tiered allocation stats in hspace's output. Not very nice, but it should be somewhat parseable.
-
Iustin Pop authored
-
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).
-
Iustin Pop authored
This patch adds the first version of tiered allocations where we decrease instance specs on allocation failure and retry the allocation. The output is not yet stable and the output changes are not documented (yet).
-
Iustin Pop authored
This patch adds a function that, for some given failure modes, shrinks a given instance in the hope that allocation will succeed when retried with the new spec.
-
- Oct 30, 2009
-
-
Iustin Pop authored
This also converts it to formatTable from hardcoded listing.
-
Iustin Pop authored
This patch reworks the internal handling of the instance spec CLI option, and adds a tiered spec option that will be used in hspace to enable the (auxiliary) tiered-spec allocation mode. It also introduces a new data type for holding the instance specification.
-
Iustin Pop authored
This allows us to do verification of option arguments in the assignment functions themselves.
-
- Oct 21, 2009
-
-
Iustin Pop authored
This doesn't need to be a monadic function, let's make it a simpler one.
-
Iustin Pop authored
Since the utilisation file might be generated at a different time from the hbal run, and instances could dissapear in the meantime, it's better to simply ignore unknown instances rather than abort.
-
Iustin Pop authored
The ordering was wrong, was showing node list details under --print-instances.
-
Iustin Pop authored
This adds run status, resource parameters and load parameters for instances.
-
- Oct 19, 2009
-
-
Iustin Pop authored
0.1.8 was never documented in the NEWS file.
-
- Oct 18, 2009
-
-
Iustin Pop authored
This patch changes the signature and implementation of the function; returning the item makes more sense (saves a lookup later again in the container, and applying idx is cheap), and the previous implementation was ugly.
-
Iustin Pop authored
-
Iustin Pop authored
Since all values are initialized to zero, the exact ordering is not important and thus we can use the positional mode for simpler code. The patch also adds docstrings to the cstats functions.
-
Iustin Pop authored
Since we now have an actual type for describing the instance moves (IMove), it's simpler to convert this into the move description/move commands, rather than re-computing the move based on initial and final nodes. This makes the shell commands computation and over-Luxi command execution use the same method of computation.
-
Iustin Pop authored
The ‘Placement’ type has been moved to Types.hs but we kept exporting it from Cluster, which is not needed.
-
Iustin Pop authored
This patch introduces a generic formatTable function (based on, and similar to the Ganeti one, but different and more FP in style) and changes the node and instance listing to it. The node list (due to the many variables) is still a little bit hackish unfortunately…
-
Iustin Pop authored
-
- Oct 16, 2009
-
-
Iustin Pop authored
-
Iustin Pop authored
-
Iustin Pop authored
This enables the per-node load/total available capacity scores to be used in balancing. Note that the total available capacity is currently fixed at zero and cannot be changed by the user.
-
Iustin Pop authored
This patch adds loading and processing the utilisation data during instance moves. While the data is not yet used, it is correctly modified by instance changes between nodes. hbal has the new ‘-U’ command line argument for this. The format of the file is simply instance name and the four stats, space-separated.
-
Iustin Pop authored
-
Iustin Pop authored
The latter is only used right after the former in the Loader module, and we'll need more of this 'update not with the data of this instance' functionality (which is different than addPri where all information must be updated). The patch also changes the signature of Node.setSec (to remain consistent with setPri).
-
Iustin Pop authored
These were already duplicate (Text and Simu) and we need tryRead in more places.
-
Iustin Pop authored
The strange printf usage is due to some limitation (it seems) in ghc for very long argument lists. The whole printout should be rewritten later.
-