Change the Node.group attribute
Currently, the Node.group attribute is the UUID of the group, as untilrecently Ganeti didn't export the node group properties. Since it doesso now, we make the following changes (again apologies for a bigpatch):
- we change the group attribute to be an index, similar to the way an...
Rework the data loader pipelines to read groups
This (invasive) patch changes all the loader pipelines to read the nodegroups data from the cluster, via the various backends. It is invasiveas it needs coordinated changes across all the loaders.
Note that the new group data is not used, just returned....
Add lookupGroup utility function
This will be used in the various backends similar to the lookupNodefunction.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Balazs Lecz <leczb@google.com>
Add a new Group.hs module describing node groups
This is not yet used by the rest of the code.
Add the new OpQueryGroups opcode definition
Improve error reporting for small clusters
When doing a two-node allocation on a cluster/group in which only onenode is online, or a one-node allocation without any online nodes, wedidn't show a valid error mesage. The patch changes tryAlloc to "failhard" in this case, to make the failure explicit....
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, andthen chooses the best solution, but adds the log messages from all the...
Add a 'log' attribute to allocation solutions
And also a couple of functions for describing a given solution; thesewill 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 <iustin@google.com>...
Change AllocSolution from tuple to its own type
Tuples are good for two, three, at most four elements. Beyond that, thecontinuous pattern matching and construction/deconstruction becomestedious.
Since in the future we'll probably keep more information in the...
Cleanup AllocSolution after AllocElement changes
Since we added the score to AllocElement, we don't need to wrapAllocElement in yet another tuple, just to attach the cluster score. Sowe simplify the AllocSolution type.
View revisions
Also available in: Atom