Statistics
| Branch: | Tag: | Revision:

root / Ganeti / HTools @ f4531f51

Name Size
CLI.hs 15.2 kB
Cluster.hs 39.3 kB
Container.hs 2.5 kB
ExtLoader.hs 4.6 kB
Group.hs 2.3 kB
IAlloc.hs 6.4 kB
Instance.hs 6.1 kB
Loader.hs 8.5 kB
Luxi.hs 6.1 kB
Node.hs 19 kB
PeerMap.hs 2.8 kB
QC.hs 29.2 kB
Rapi.hs 5.3 kB
Simu.hs 2.4 kB
Text.hs 5.8 kB
Types.hs 6.4 kB
Utils.hs 7 kB
Version.hs.in 201 Bytes

Latest revisions

# Date Author Comment
f4531f51 12/20/2010 02:22 pm Iustin Pop

Add lookupGroup utility function

This will be used in the various backends similar to the lookupNode
function.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

0dc1bf87 12/20/2010 02:20 pm Iustin Pop

Add a new Group.hs module describing node groups

This is not yet used by the rest of the code.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

dec88196 12/09/2010 04:08 pm Iustin Pop

Improve error reporting for small clusters

When doing a two-node allocation on a cluster/group in which only one
node is online, or a one-node allocation without any online nodes, we
didn't show a valid error mesage. The patch changes tryAlloc to "fail
hard" in this case, to make the failure explicit....

9b1584fc 12/09/2010 04:08 pm Iustin Pop

hail/allocate: implement multi-group support

This is a bit hackish. We add a new function that takes the input data,
splits it into groups, runs the original tryAlloc for each group, and
then chooses the best solution, but adds the log messages from all the...

859fc11d 12/09/2010 04:08 pm Iustin Pop

Add a 'log' attribute to allocation solutions

And also a couple of functions for describing a given solution; these
will be used in the future instead of the ones currently in hail.

The patch also enhances the description of failure messages.

Signed-off-by: Iustin Pop <>...

85d0ddc3 12/09/2010 04:08 pm Iustin Pop

Change AllocSolution from tuple to its own type

Tuples are good for two, three, at most four elements. Beyond that, the
continuous pattern matching and construction/deconstruction becomes
tedious.

Since in the future we'll probably keep more information in the...

a334d536 12/01/2010 07:08 pm Iustin Pop

Cleanup AllocSolution after AllocElement changes

Since we added the score to AllocElement, we don't need to wrap
AllocElement in yet another tuple, just to attach the cluster score. So
we simplify the AllocSolution type.

Signed-off-by: Iustin Pop <>...

7d3f4253 12/01/2010 07:08 pm Iustin Pop

AllocElement: extend with the cluster score

AllocElement, a type used as a result of allocations, holds the status
of the nodes after the allocation. In most cases, we'll compare this
allocation result with others, to see which allocation decision makes
the most sense. This comparison is done via the cluster score....

06fb841e 12/01/2010 07:08 pm Iustin Pop

Add two utility functions for the Result type

Actually, this just moves the functions from the QC module to Types, and
removes a duplicate entry from Cluster.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

99b63608 12/01/2010 07:08 pm Iustin Pop

Rework the types used during data loading

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....

View revisions

Also available in: Atom