Rapi: fully evaluate the body in getUrl
Currently, the Rapi.getUrl function returns the body withoutevaluating it, and the other functions (loadData, parseData) do thesame. In effect, the top-level structure returned from loadData can bea thunk which depends on the curl operation, thus keeping the curl...
Rapi: move the curl options list to a separate var
A small cleanup, this just moves the options to a separate list toavoid instantiation at every call.
Signed-off-by: Iustin Pop <iustin@google.com>Reviewed-by: Balazs Lecz <leczb@google.com>
Node: add and export a 'used disk' function
This is similar to iMem.
Node: Export the instance memory function
This exports the iMem function as a standalone function, instead ofbeing hardcoded in showField.
Instance relocation: stay within the current group
This patch adds a new top-level relocation function that restricts therelocation to the instance's group, and switches hail to it.
Container: remove fromAssocList
Container.fromAssocList is just a re-export of IntMap.fromList; itmakes sense to remove it and simply export the original name, as itneeds just a bit of renaming in the rest of the code.
Signed-off-by: Iustin Pop <iustin@google.com>...
Parallelize the balancing computations
This small patch changes the balancing computation to work inparallel, if possible.
While the normal linking is against the single-threaded runtime, ifthe code is linked against the multi-threaded one, the balancing will...
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 allocatedinstances. For better visibility in how the cluster resources change,...
Fix updating of available (V)CPUs in CStats
RAPI: implement backwards compat with Ganeti 2.3
This is a cheap way to get back compatibility with Ganeti 2.3 (andlower) in the RAPI backend. It is however not very safe (the /2/groupsresource could fail due to other reasons), so it is added onlytemporarily....
View revisions
Also available in: Atom