Statistics
| Branch: | Tag: | Revision:

root / Ganeti / HTools @ 4bc33d60

Name Size
CLI.hs 16.1 kB
Cluster.hs 42.3 kB
Container.hs 2.4 kB
ExtLoader.hs 5.1 kB
Group.hs 2.3 kB
IAlloc.hs 7.1 kB
Instance.hs 6.1 kB
Loader.hs 9 kB
Luxi.hs 7.1 kB
Node.hs 19 kB
PeerMap.hs 2.8 kB
QC.hs 29.8 kB
Rapi.hs 6.6 kB
Simu.hs 3.3 kB
Text.hs 6.8 kB
Types.hs 7.9 kB
Utils.hs 7 kB
Version.hs.in 201 Bytes

Latest revisions

# Date Author Comment
4bc33d60 01/07/2011 05:39 pm Iustin Pop

Instance relocation: stay within the current group

This patch adds a new top-level relocation function that restricts the
relocation to the instance's group, and switches hail to it.

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

cb0c77ff 12/30/2010 03:56 pm Iustin Pop

Container: remove fromAssocList

Container.fromAssocList is just a re-export of IntMap.fromList; it
makes sense to remove it and simply export the original name, as it
needs just a bit of renaming in the rest of the code.

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

a3eee4ad 12/30/2010 03:56 pm Iustin Pop

Parallelize the balancing computations

This small patch changes the balancing computation to work in
parallel, if possible.

While the normal linking is against the single-threaded runtime, if
the code is linked against the multi-threaded one, the balancing will...

d5ccec02 12/30/2010 03:46 pm Iustin Pop

Allocation routines: return list of resource stats

Currently, the allocation routines (iterateAlloc and tieredAlloc)
return only the final state of the cluster and the list of allocated
instances. For better visibility in how the cluster resources change,...

f52dadb2 12/30/2010 03:43 pm Iustin Pop

Fix updating of available (V)CPUs in CStats

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

fd3fe74d 12/30/2010 03:43 pm Iustin Pop

RAPI: implement backwards compat with Ganeti 2.3

This is a cheap way to get back compatibility with Ganeti 2.3 (and
lower) in the RAPI backend. It is however not very safe (the /2/groups
resource could fail due to other reasons), so it is added only
temporarily....

a083e855 12/30/2010 03:42 pm Iustin Pop

Document Utils.tryFromObj

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

6bc39970 12/30/2010 03:41 pm Iustin Pop

Add 'Read' instances for most objects

This allows a cluster structure to be easily serialized via "read";
together with the already existing instances of Show, this gives a
poor man's serialization/deserialization implementation.

The patch also exports the compDetailedCV function from Cluster.hs, so...

33e44f0c 12/30/2010 11:49 am Iustin Pop

Add maybePrintInsts for the instance listing

This again abstracts a bit the instance listing. Due to the fact that
I don't want to import Cluster.hs in CLI.hs, we pass the already
generated output. It also moves the instance display to stderr.

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

417f6b50 12/30/2010 11:49 am Iustin Pop

Add maybePrintNodes for abstracting the node list

Since this bit of code (including the “when (isJust …)” is used in
multiple places, let's abstract it in a function that is used
consistently. One (bad?) side-effect is that all node lists are done
to stderr, including the ones from hbal where it was previously done...

View revisions

Also available in: Atom