On Wed, Jul 08, 2015 at 10:11:45PM +0300, Oleg Ponomarev wrote:
> According to the design-location document (Improving location awareness)
> cluster metric is extended by the component
> 
> - The number of pairs of exclusion tags and common-failure tags where
>   there exist at least two instances with the given exclusion tag with
>   the primary node having the given common-failure tag.
> 
> Also this patch fixes Statistics.hs test in order to work with new
> Statistics because the test is broken by the changes in Statistics.hs.
> 
> Signed-off-by: Oleg Ponomarev <[email protected]>
> ---
>  src/Ganeti/HTools/Cluster/Metrics.hs    | 27 +++++++-----
>  src/Ganeti/HTools/Node.hs               | 41 ++++++++++++++----
>  src/Ganeti/Utils/Statistics.hs          | 74 
> ++++++++++++++++++++++++++-------
>  test/hs/Test/Ganeti/Utils/Statistics.hs |  6 ++-
>  4 files changed, 113 insertions(+), 35 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

Reply via email to