Statistics
| Branch: | Tag: | Revision:

root / Ganeti / HTools @ 6bc39970

Name Size
CLI.hs 16.1 kB
Cluster.hs 40.7 kB
Container.hs 2.5 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.7 kB
Rapi.hs 6.2 kB
Simu.hs 3.3 kB
Text.hs 6.8 kB
Types.hs 7.9 kB
Utils.hs 6.9 kB
Version.hs.in 201 Bytes

Latest revisions

# Date Author Comment
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...

4188449c 12/30/2010 11:48 am Iustin Pop

Add maybeSaveData for cluster state saving

This functionality was replicated in multiple places (hbal & hspace),
so we abstract it for better clarity.

Additionally, in hbal we now save the state both before and after
balancing.

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

c0e31451 12/30/2010 11:45 am Iustin Pop

Convert Text.serializeCluster to ClusterData

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

f4f6eb0b 12/30/2010 11:44 am Iustin Pop

Convert the rest of the pipeline to ClusterData

This patch converts the backends and mergeData to the new ClusterData
type.

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

017a0c3d 12/30/2010 11:44 am Iustin Pop

Move part of the loader pipeline to ClusterData

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

34c00528 12/30/2010 11:40 am Iustin Pop

Convert Loader.RqType to ClusterData

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

7b6e99b3 12/30/2010 11:38 am Iustin Pop

Add a new type ClusterData

This will be used to hold all the disparate uses of the cluster data:
we have either tuples with these four elements, or functions taking
these four arguments, etc.

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

6c7448bb 12/30/2010 11:38 am Iustin Pop

Simulation backend: read the allocation policy too

This patch moves the allocation policy from hardcoded to be read from
the given specification, and extends the error message for invalid
specifications.

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

View revisions

Also available in: Atom