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 91850200C4D for ; Wed, 5 Apr 2017 10:56:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 90249160B94; Wed, 5 Apr 2017 08:56:47 +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 CD219160B91 for ; Wed, 5 Apr 2017 10:56:46 +0200 (CEST) Received: (qmail 30053 invoked by uid 500); 5 Apr 2017 08:56:45 -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 30042 invoked by uid 99); 5 Apr 2017 08:56:45 -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, 05 Apr 2017 08:56:45 +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 641E7C05CD for ; Wed, 5 Apr 2017 08:56:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id VFwt28KY_vuu for ; Wed, 5 Apr 2017 08:56:44 +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 47CA95F24E for ; Wed, 5 Apr 2017 08:56:44 +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 5CF25E0D44 for ; Wed, 5 Apr 2017 08:56:43 +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 5CCB62402C for ; Wed, 5 Apr 2017 08:56:42 +0000 (UTC) Date: Wed, 5 Apr 2017 08:56:42 +0000 (UTC) From: "Phil Yang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12770) Don't transfer all the queued hlogs of a dead server to the same alive server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 05 Apr 2017 08:56:47 -0000 [ https://issues.apache.org/jira/browse/HBASE-12770?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Yang updated HBASE-12770: ------------------------------ Fix Version/s: 1.3.1 > Don't transfer all the queued hlogs of a dead server to the same alive se= rver > -------------------------------------------------------------------------= ---- > > Key: HBASE-12770 > URL: https://issues.apache.org/jira/browse/HBASE-12770 > Project: HBase > Issue Type: Improvement > Components: Replication > Affects Versions: 2.0.0, 1.4.0 > Reporter: Jianwei Cui > Assignee: Phil Yang > Priority: Minor > Fix For: 2.0.0, 1.4.0, 1.3.1 > > Attachments: HBASE-12770-branch-1-v1.patch, HBASE-12770-branch-1-= v2.patch, HBASE-12770-branch-1-v3.patch, HBASE-12770-branch-1-v3.patch, HBA= SE-12770-branch-1-v3.patch, HBASE-12770-branch-1-v3.patch, HBASE-12770-trun= k.patch, HBASE-12770-v1.patch, HBASE-12770-v2.patch, HBASE-12770-v3.patch, = HBASE-12770-v3.patch > > > When a region server is down(or the cluster restart), all the hlog queues= will be transferred by the same alive region server. In a shared cluster, = we might create several peers replicating data to different peer clusters. = There might be lots of hlogs queued for these peers caused by several reaso= ns, such as some peers might be disabled, or errors from peer cluster might= prevent the replication, or the replication sources may fail to read some = hlog because of hdfs problem. Then, if the server is down or restarted, ano= ther alive server will take all the replication jobs of the dead server, th= is might bring a big pressure to resources(network/disk read) of the alive = server and also is not fast enough to replicate the queued hlogs. And if th= e alive server is down, all the replication jobs including that takes from = other dead servers will once again be totally transferred to another alive = server, this might cause a server have a large number of queued hlogs(in ou= r shared cluster, we find one server might have thousands of queued hlogs f= or replication). As an optional way, is it reasonable that the alive server= only transfer one peer's hlogs from the dead server one time? Then, other = alive region servers might have the opportunity to transfer the hlogs of re= st peers. This may also help the queued hlogs be processed more fast. Any d= iscussion is welcome. -- This message was sent by Atlassian JIRA (v6.3.15#6346)