Statistics
| Branch: | Tag: | Revision:

root / Ganeti @ d6c76bd5

Name Size
  HTools
Jobs.hs 3.3 kB
Luxi.hs 8.6 kB
OpCodes.hs 4.9 kB

Latest revisions

# Date Author Comment
d6c76bd5 02/01/2011 02:08 pm Iustin Pop

tryAlloc: restrict valid node pairs to same-group

This is a cheap way to make capacity calculation work well with
multi-group clusters.

There are two alternatives in implementing this:

- we can split the cluster into groups, run individual group
allocation, and then try to recombine the groups; but this doesn't...

40ee14bc 02/01/2011 02:08 pm Iustin Pop

Cluster.hs: add a new type alias

Just a bit of small cleanup, since we might want to use more functions
with this signature in the future.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

3986684e 01/10/2011 04:50 pm Iustin Pop

Rapi: read and use the vm_capable node flag

Similar to the IAllocator change, this patch reads and uses the
vm_capable flag in Rapi. Furthermore, it changes the group UUID
reading to the same maybeFromObj infrastructure.

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

3eeea90f 01/10/2011 04:50 pm Iustin Pop

IAllocator: read and use the vm_capable node flag

This allows non-vm_capable nodes, which don't export runtime data, to
not break the IAllocator message parsing.

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

1b2cb110 01/10/2011 04:50 pm Iustin Pop

IAllocator: replace fake policy with real one

This small patch actually reads the allocation policy from the
IAllocator message.

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

2befdc14 01/10/2011 04:50 pm Iustin Pop

JSON: improve error reporting

Currently, we list the entire object in error messages. But for large
objects (e.g. an IAllocator message), this makes the output
unreadable, as the elements are containers themselves.

To simplify the reporting, we only list the keys, as this is more...

e8230242 01/10/2011 04:49 pm Iustin Pop

JSON functions: change signature of (maybe)fromObj

Currently, fromObj/maybeFromObj take first the key, and then the
object. This is suboptimal, as this form is not easy to use with
partial functional application.

To make it easier to switch between tryFromObj, fromObj and...

1bc47d38 01/07/2011 05:39 pm Iustin Pop

Convert node evacuation to multi-group

This patch does the necessary changes to make the new tryMGEvac work
correctly: each instance remains inside its primary node's group when
it is evacuated.

This is done by splitting up the to-be-evacuated instance list per...

2ca68e2b 01/07/2011 05:39 pm Iustin Pop

Evacuation: extract the inner fold function

This makes the code more readable, which will help with the
multi-group evacuation.

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

c9224fa4 01/07/2011 05:39 pm Iustin Pop

Rapi: fully evaluate the body in getUrl

Currently, the Rapi.getUrl function returns the body without
evaluating it, and the other functions (loadData, parseData) do the
same. In effect, the top-level structure returned from loadData can be
a thunk which depends on the curl operation, thus keeping the curl...

View revisions

Also available in: Atom