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 517C1200B5A for ; Thu, 4 Aug 2016 13:34:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 500F9160AAB; Thu, 4 Aug 2016 11:34:22 +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 96EEF160A7C for ; Thu, 4 Aug 2016 13:34:21 +0200 (CEST) Received: (qmail 30786 invoked by uid 500); 4 Aug 2016 11:34:20 -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 30771 invoked by uid 99); 4 Aug 2016 11:34:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2016 11:34:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8AB322C0D63 for ; Thu, 4 Aug 2016 11:34:20 +0000 (UTC) Date: Thu, 4 Aug 2016 11:34:20 +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: Thu, 04 Aug 2016 11:34:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-12770?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Yang updated HBASE-12770: ------------------------------ Attachment: HBASE-12770-branch-1-v1.patch Upload patch for branch-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 > Reporter: Jianwei Cui > Assignee: Phil Yang > Priority: Minor > Attachments: HBASE-12770-branch-1-v1.patch, HBASE-12770-trunk.pat= ch, HBASE-12770-v1.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.4#6332)