Extract a partition functional
authorKlaus Aehlig <aehlig@google.com>
Thu, 27 Jun 2013 13:34:14 +0000 (15:34 +0200)
committerKlaus Aehlig <aehlig@google.com>
Mon, 1 Jul 2013 07:53:32 +0000 (09:53 +0200)
commitfdbdeaa3e9039a9ef449a7fc9d0c477f921ad796
tree6f108bf01c368dbc9eaeb401bec44454b2c11054
parenta947a583f57c3ff24667e96c8cd3c50a487436e7
Extract a partition functional

Separate the partitionNonRedundant function in hroller into a
general functional that partitions a list of nodes according
to some clearing strategy and the specialization of moving
non-redundant instances out. In this way, we don't have to
duplicate code when partitioning due to capacity of finding
new secondary nodes.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
src/Ganeti/HTools/Program/Hroller.hs