On Fri, Jun 26, 2015 at 04:38:54PM +0300, Oleg Ponomarev wrote: > Instance pinning is introduced in ganeti locations design document. > It adds new instance tag of form htools:desiredlocation:x where x is > a location tag of a desired primary node. This implemented by adding > second component to the instance locationScore. > The metric is extended with the following component: > > * Sum of dissatisfied desired locations number among all cluster instances. > An instance desired location is dissatisfied when the instance is assigned > a desired-location tag x where the node is not tagged with the location tag > x. > > Signed-off-by: Oleg Ponomarev <[email protected]> > --- > src/Ganeti/HTools/Instance.hs | 3 +++ > src/Ganeti/HTools/Loader.hs | 15 +++++++++++++++ > src/Ganeti/HTools/Node.hs | 19 +++++++++++++++++-- > src/Ganeti/HTools/Tags/Constants.hs | 7 ++++++- > 4 files changed, 41 insertions(+), 3 deletions(-)
LGTM -- Klaus Aehlig Google Germany GmbH, Dienerstr. 12, 80331 Muenchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschaeftsfuehrer: Graham Law, Christine Elizabeth Flores
