Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 34EDC200C37 for ; Mon, 6 Feb 2017 06:12:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 33A85160B65; Mon, 6 Feb 2017 05:12:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 863B8160B6B for ; Mon, 6 Feb 2017 06:12:52 +0100 (CET) Received: (qmail 82945 invoked by uid 500); 6 Feb 2017 05:12:50 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 82706 invoked by uid 99); 6 Feb 2017 05:12:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 05:12:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 85B1D1A0033 for ; Mon, 6 Feb 2017 05:12:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fqEkeP0F4I7P for ; Mon, 6 Feb 2017 05:12:48 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CC2ED60D12 for ; Mon, 6 Feb 2017 05:12:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D39F3E05C2 for ; Mon, 6 Feb 2017 05:12:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 87FF9252C5 for ; Mon, 6 Feb 2017 05:12:43 +0000 (UTC) Date: Mon, 6 Feb 2017 05:12:43 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17565) StochasticLoadBalancer may incorrectly skip balancing due to skewed multiplier sum MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Feb 2017 05:12:53 -0000 [ https://issues.apache.org/jira/browse/HBASE-17565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ted Yu updated HBASE-17565: --------------------------- Attachment: 17565.v4.txt > StochasticLoadBalancer may incorrectly skip balancing due to skewed multiplier sum > ---------------------------------------------------------------------------------- > > Key: HBASE-17565 > URL: https://issues.apache.org/jira/browse/HBASE-17565 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Critical > Fix For: 2.0.0, 1.4.0 > > Attachments: 17565.v1.txt, 17565.v2.txt, 17565.v3.txt, 17565.v4.txt > > > I was investigating why a 6 node cluster kept skipping balancing requests. > Here were the region counts on the servers: > 449, 448, 447, 449, 453, 0 > {code} > 2017-01-26 22:04:47,145 INFO [RpcServer.deafult.FPBQ.Fifo.handler=1,queue=0,port=16000] balancer.StochasticLoadBalancer: Skipping load balancing because balanced cluster; total cost is 127.0171157050385, sum multiplier is 111087.0 min cost which need balance is 0.05 > {code} > The big multiplier sum caught my eyes. Here was what additional debug logging showed: > {code} > 2017-01-27 23:25:31,749 DEBUG [RpcServer.deafult.FPBQ.Fifo.handler=9,queue=0,port=16000] balancer.StochasticLoadBalancer: class org.apache.hadoop.hbase.master.balancer. StochasticLoadBalancer$RegionReplicaHostCostFunction with multiplier 100000.0 > 2017-01-27 23:25:31,749 DEBUG [RpcServer.deafult.FPBQ.Fifo.handler=9,queue=0,port=16000] balancer.StochasticLoadBalancer: class org.apache.hadoop.hbase.master.balancer. StochasticLoadBalancer$RegionReplicaRackCostFunction with multiplier 10000.0 > {code} > Note however, that no table in the cluster used read replica. > I can think of two ways of fixing this situation: > 1. If there is no read replica in the cluster, ignore the multipliers for the above two functions. > 2. When cost() returned by the CostFunction is 0 (or very very close to 0.0), ignore the multiplier. -- This message was sent by Atlassian JIRA (v6.3.15#6346)