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 EDF1A200CAD for ; Wed, 14 Jun 2017 06:48:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ECBE0160BE9; Wed, 14 Jun 2017 04:48:03 +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 3ED1E160BDC for ; Wed, 14 Jun 2017 06:48:03 +0200 (CEST) Received: (qmail 472 invoked by uid 500); 14 Jun 2017 04:48:02 -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 461 invoked by uid 99); 14 Jun 2017 04:48:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2017 04:48:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C7288CF63F for ; Wed, 14 Jun 2017 04:48:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pSX8m_wvut5t for ; Wed, 14 Jun 2017 04:48:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D6B165FBE2 for ; Wed, 14 Jun 2017 04:48:00 +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 546D2E02C7 for ; Wed, 14 Jun 2017 04:48:00 +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 0A6C321D8E for ; Wed, 14 Jun 2017 04:48:00 +0000 (UTC) Date: Wed, 14 Jun 2017 04:48:00 +0000 (UTC) From: "chenxu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-18215) some advises about refactoring of rsgroup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Jun 2017 04:48:04 -0000 [ https://issues.apache.org/jira/browse/HBASE-18215?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] chenxu updated HBASE-18215: --------------------------- Attachment: HBASE-18215-1.2.4-v1.patch here is the patch about our implementation. > some advises about refactoring of rsgroup > ----------------------------------------- > > Key: HBASE-18215 > URL: https://issues.apache.org/jira/browse/HBASE-18215 > Project: HBase > Issue Type: Improvement > Components: Balancer > Reporter: chenxu > Attachments: HBASE-18215-1.2.4-v1.patch > > > recently we have Integrated rsgroup into our cluster, after Integrated, = found some refactoring points. maybe the points were not right, but i think= there is a need to share with you guys. > # when hbase.balancer.tablesOnMaster configured, RSGroupBasedLoadBalancer= should consider masterServer assignment first in balanceCluster, roundRobi= nAssignment, retainAssignment and randomAssignment > do the same thing as BaseLoadBalancer > # why not use a local file as the persistence layer instead of rsgroup ta= ble.=20 > in our implementation, we first modify the local rsgroup file, then load = the group info into memory, after that execute the balancer command, everyt= hing is OK. > when loading do some sanity check: > (1) one server can not be owned by multi group > (2) one table can not be owned by multi group > (3) if group has table, it must also has servers > (4) default group must has servers in it > if sanity check can=E2=80=99t pass, give up the following process.work as= this, it can greatly reduce the complexity of rsgroup implementation, ther= e is no need to wait for the rsgroup table to be online, and methods like m= oveServers, moveTables, addRSGroup, removeRSGroup, moveServersAndTables can= be removed from RSGroupAdminService.only a refresh method is need(modify p= ersistence layer first and refresh the memory) > # we should add some group informations on master web UI > to do this, RSGroupBasedLoadBalancer should move to hbase-server module, = because MasterStatusTmpl.jamon depends on it > # there may be some issues about RSGroupBasedLoadBalancer.roundRobinAssig= nment > if two groups both include BOGUS_SERVER_NAME, assignments.putAll will ove= rwrite the previous data > # there may be some issues about RSGroupBasedLoadBalancer.randomAssignmen= t > when the return value is BOGUS_SERVER_NAME, AM can not handle this case. = we should return null value instead of BOGUS_SERVER_NAME. > # when RSGroupBasedLoadBalancer.balanceCluster execute, groups are balanc= ed one by one, if there are two many groups, we can do this in parallel. -- This message was sent by Atlassian JIRA (v6.4.14#64029)