An error occurred fetching the project authors.
- Jul 16, 2010
-
-
Iustin Pop authored
This needs to be abstracted in a separate function, but in the meantime we fix the issue in both places. Signed-off-by:
Iustin Pop <iustin@google.com>
-
- May 20, 2010
-
-
Iustin Pop authored
This is done so we can test a longer pipeline.
-
Iustin Pop authored
Currently the name used internally is modified and holds the shortened name of the nodes/instances. This has caused issues before, since we always have to strip the suffix from input data and reapply it if we need to send data back to Ganeti. This patch changes the code such that the names are never modified, only the alias, and all the internal computations can forget about the common suffix addition/removal.
-
- May 19, 2010
-
-
Iustin Pop authored
-
- May 17, 2010
-
-
Iustin Pop authored
Currently we just print a fake result and exit early. This is bad, since it doesn't use the same codepaths for all the result printing, and has already led to a bug where hspace looks like completely ignoring the tiered specs request. This patch changes the code to override the computation, instead of the printout, thus allowing tiered specs results for such cases.
-
- Apr 15, 2010
-
-
Iustin Pop authored
This patch adds the metrics of used/allocable/unallocable resources.
-
- Feb 25, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
GHC 6.12 has some new warnings, which are valid in most cases except (IMHO) printf usage.
-
Iustin Pop authored
GHC 6.12 has become more picky about unused imports, so we need to remove/tighten some of them.
-
- Feb 22, 2010
-
-
Iustin Pop authored
In preparation for multiple responses, we change from Maybe to List (both used in the container sense). This allows us to keep the same workflow for all kind of requests. Signed-off-by:
Iustin Pop <iustin@google.com>
-
- Jan 07, 2010
-
-
Iustin Pop authored
This patch changes from the two separate files to a single file, with sections separated by a blank line. Currently only the node and instance data is accepted, later the cluster tags will be read too via this format. This makes all the programs accept the new format, but hscan doesn't yet generate it.
-
- Nov 27, 2009
-
-
Iustin Pop authored
While these are not actually populated from the backends, and all the programs ignore them, this patch contains the changes in the function types required.
-
- 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 11, 2009
-
-
Iustin Pop authored
… and read it in all the loaders. hscan is modified to save it to the files it generates. The attribute is not yet used in any place.
-
- Nov 10, 2009
-
-
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 06, 2009
-
-
Iustin Pop authored
-
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
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).
-
- 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.
-
- Oct 14, 2009
-
-
Iustin Pop authored
This is again the cs_x to csX name change.
-
Iustin Pop authored
This changes from a_b to aB in all node and instance attributes, to match the standard Haskell style. Also attributes that should have been camel-cased but weren't were changed (e.g. plist → pList, pnode → pNode).
-
- Sep 28, 2009
-
-
Iustin Pop authored
Currently the external data loader is in CLI.hs, which makes all programs that need cli functionality (options, etc.) link against the network modules (most importantly curl). This patch splits this functionality into a new module such that (for example) hail which only deals with file I/O doesn't link against these libraries.
-
- Aug 18, 2009
-
-
Iustin Pop authored
This is useful especially for hspace, where we might want to simulate a hypothetical cluster to check allocation beforehand.
-
- Jul 15, 2009
-
-
Iustin Pop authored
This patch moves all the command line options and their internal representation into CLI.hs. This means that duplicated options between any two binaries are no longer declared twice, and that we no longer need the two *Option classes.
-
- Jul 14, 2009
-
-
Iustin Pop authored
-
Iustin Pop authored
This patch changes the backend selection method in CLI to prefer, in order: - a RAPI specification - a Luxi specification - and finally the node/instance files It also modifies hspace and hbal to provide a ‘-L’ command line option for enabling Luxi.
-
- Jul 09, 2009
-
-
Iustin Pop authored
Currently hspace doesn't handle failures from tryAlloc correctly; this patch changes the iterateDepth function in hspace to return a Result (…) so that errors can be propagated correctly. The patch also changes one output key to be more clear and a typo in Cluster.hs
-
Iustin Pop authored
Currently, the tryAlloc and tryReloc function return a list with all the results, both failures and successes. This is fine for hail, which does one round of allocations, but is not so good for hspace, which does iterative rounds; since at each (successful) step we only take the best solution, it means that we're using lots of heap space to compute and store node lists which are thrown away at the end of the step. This patch changes these two functions and their callers in hail/hspace to only return the best solution, and error/success counters. This allows hspace to run in a much smaller space, and reduces GC cost greatly. Overall, it is a cleanup, as hail/hspace did a lot of work to chose this best solution, whereas now it's automatically promoted within Cluster.concatAllocs.
-
- Jul 08, 2009
-
-
Iustin Pop authored
Currently the Cluster.AllocSolution type is defined as a list of ‘(OpResult Node.list, …)’ and the results for applyMove are defined as ‘(OpResult Node.List, …)’. Both these means that the failure/success indication is hidden in the first elements of this tuple, which makes is harder to add other elements depending on the success/failure (like the score for the new node list). This patch moves the OpResult to outside of the tuple, in effect making all these ‘OpResult (…)’ which makes the internal tuple elements consistent. The patch is affecting the applyMove, tryAlloc and tryRealloc functions, and only briefly the hail and hspace programs.
-
Iustin Pop authored
This (big) patch changes the output of hspace from text-format (separated by ‘: ’) to a shell-snippet, in ‘key=value’ format. This will allow sourcing the output or parsing it via awk/sed/etc.
-
Iustin Pop authored
Currently the instance count and cluster score are separated from the other initial/final phase stats, even though they are very similar. This patch moves computation of these two into totalResources/CStats and removes special printing in hspace.
-
- Jul 07, 2009
-
-
Iustin Pop authored
This patch changes Cluster.totalResources to compute more resources and prints them in hspace.
-
Iustin Pop authored
Currently many of the exit and warning conditions mistakenly display error messages on stdout, which makes parsing the output of programs harder. This patch attempts to fix such occurrences.
-
Iustin Pop authored
Currently hspace exits with an error if the cluster is not N+1 compliant at the beginning of the run. This patch changes hspace such that this condition is instead treated as a zero-allocation-possible, FailN1 mode. This allows the same stats to be reported in this case as in the normal case.
-
Iustin Pop authored
-
Iustin Pop authored
This is mostly for user-friendliness in the default mode, when we don't specify the instance parameters.
-
- Jul 06, 2009
-
-
Iustin Pop authored
This big patch cleans up the code per hlint indications. Many removals of extra parentheses, replacements of concat . map with concabtMap, extra dollar signs, eta reductions, etc. were performed. The code still compiles and passes a couple of manual tests on sample files. The individual changes are also small enough as to be visually easy to confirm.
-
- Jul 05, 2009
-
-
Iustin Pop authored
This patch enhances hspace to report why the allocation sequence stopped, both in absolute error count and for the top reason.
-