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 1163E200C2B for ; Thu, 2 Mar 2017 17:47:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0FFCE160B6F; Thu, 2 Mar 2017 16:47:01 +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 0DE87160B6A for ; Thu, 2 Mar 2017 17:46:59 +0100 (CET) Received: (qmail 38388 invoked by uid 500); 2 Mar 2017 16:46:58 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 38374 invoked by uid 99); 2 Mar 2017 16:46:58 -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; Thu, 02 Mar 2017 16:46:58 +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 E8CC0C1FF5 for ; Thu, 2 Mar 2017 16:46:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.178 X-Spam-Level: * X-Spam-Status: No, score=1.178 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com 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 mG7OtCIPbo7e for ; Thu, 2 Mar 2017 16:46:53 +0000 (UTC) Received: from COL004-OMC3S7.hotmail.com (col004-omc3s7.hotmail.com [65.55.34.145]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D77815FDD4 for ; Thu, 2 Mar 2017 16:46:52 +0000 (UTC) Received: from NAM03-DM3-obe.outbound.protection.outlook.com ([65.55.34.137]) by COL004-OMC3S7.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 2 Mar 2017 08:46:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=kF6DJ0D0MBABm1QB+iMT7CtN4D1QtlplKoVTxvzNrng=; b=HZMv+MRyOMQGKOQ6tzdwr1WpLlKkW7qX9I7tluMLl52eHD819znMGJcwYDn5gQ3viBMmWl75Anju85Cwb6XPLrUJ55l21BFC+3Jr+Hy4glgK/7GDJFCsdHhCqCJn/7DZF0K6dtvqRm8zF8JrWiqF4PA8sYJqdlUQFA26sRPNXjtA00b92jT82Q4u4wOfHi/19svMn4op8ybISy0Gf2GUjFmdldrGCyXfsnz7hykiuYsurzD0nWgrt3nET0HbROAwtpTlMtjJcqrXUM8xgWRYg1c5yASztbOdzp3U/0m8q4bmieB4MnFc7ICxCNjm7W+BOtD1kNLwiopnfJ/QJv80mw== Received: from DM3NAM03FT053.eop-NAM03.prod.protection.outlook.com (10.152.82.53) by DM3NAM03HT236.eop-NAM03.prod.protection.outlook.com (10.152.83.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7; Thu, 2 Mar 2017 16:46:45 +0000 Received: from BY1PR14MB0167.namprd14.prod.outlook.com (10.152.82.56) by DM3NAM03FT053.mail.protection.outlook.com (10.152.83.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.7 via Frontend Transport; Thu, 2 Mar 2017 16:46:45 +0000 Received: from BY1PR14MB0167.namprd14.prod.outlook.com ([10.162.148.20]) by BY1PR14MB0167.namprd14.prod.outlook.com ([10.162.148.20]) with mapi id 15.01.0933.020; Thu, 2 Mar 2017 16:46:45 +0000 From: jeff saremi To: "user@hbase.apache.org" Subject: Re: On HBase Read Replicas Thread-Topic: On HBase Read Replicas Thread-Index: AQHShLJ5si1iP5j2FUSKO0K32ew3cqFkdygAgAAy8a6ABs1hAIAAZmvRgAAQeQCAAbMgAIAABosygAAiNACAA6TXAIAEL5iAgAlapWeAAa7GgIABN55h Date: Thu, 2 Mar 2017 16:46:45 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: hbase.apache.org; dkim=none (message not signed) header.d=none;hbase.apache.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:408BD99827BCAFF1FDCA715BD4FBD42C10FACB7F97629386FDA64AD564453514;UpperCasedChecksum:5C32FC65E1579527595CD9222DA804CBF98A686AFDE9A4A48CAF510FFE27E356;SizeAsReceived:8661;Count:39 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [+/LrN3IwYEaoSHRRqKF9+4jDhaazStUh] x-incomingheadercount: 39 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1;DM3NAM03HT236;5:xSD9f2nlIXin9s7H4IVUwa8UD4L4nqrDF96UR7A9mfjh74m7eWtP5vbQMCiViyEsJrE6QDSE2kLPeaQqgcwLnd8u6pEL/PN4zZk3Z4hUUPbycS2pfe3nrB+nYeC1tcOGHCDjLTAh1IjiOCH+HK9j0g==;24:ImzRq6BhtR+G6zt3gxuaON1O9EJc+gF3SNpbdIQgrq0GY7No6HQADraW2OXFQwNQ4FJxbnQhwjOJvkY97yVDeU/klDqJPeUwfrv4BXhuRmA=;7:jj2kSqwp/rKIEcO2Ah0HciJ8cLXPwqo7fYMez/y69k2Lt5AParPMd6mOPxoziPWaw4GA2ePDXy7HEM3XTcfCecRKV4Eb30bHLR93oVjv4YBRD2r2bVog8coAo67m/8988K5RcQw2MMNKmeSEN3n5Qj5b1jzDQpuL6DWmbKyXMBaO4LecM0G8nwy6iBphxb/gzYl0IPT7H18ybk6+6LsUA57hfUZQT5e7xWD3WN6DW6gmjMb8aPZpALAjMi2eMq9P7AmbHkh5ZdvIKtbiJ5nOT0sTPTvCF+/fRNJY0dNgUbC4oBngujT3f0QgAggntnYp x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900013);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3NAM03HT236;H:BY1PR14MB0167.namprd14.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 38450bd3-00e3-44d1-87bc-08d4618bb632 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(201702181095)(1603101448)(1601125254)(1701031045);SRVR:DM3NAM03HT236; x-ms-exchange-slblob-mailprops: uIjBWfsAVx/0QqKyuv7h1qLAs4ijbaHq5Jf5JOs4DVzLJIt4K5HJVS1fvzkutVBYl2c6EORHr3mIoYvAwMLSomVn4gQ56YkMHw8Q+gAOLEprkGtf3kE2+kHNGDSi39IWBlrTXDbalsP70htoe5Llqrz5A2l+IPTZsrpTlTirvLwXLPPS4uADrR/AaJB/84HvZWyYcJhNg3r8/LtmLCHTudHbDpegyftvX3YyIQePnqQQ91bHAP6eWfHVtrEueG4Mk7tV0/X60gfmyh7dwunykjr0uQzk83KVspqVzE/eP68Q/MJdMvqsWNqFvn8QzsH5SI8i1RK7+zdow39wsgh/XjnNwscFkiDsJTSpFbJSCgVF95vevyC1rktBcvFvvC12lPBmydp8hSb0I1rgLLIk46IX9mzMWoE5d4XkV7ZlyNDWVALFiNpMoQt9Xa2qe+OAsSMzz8sbZTm+u+miv9AMyLa1/StKoAcvX3XnXSRiNiMFSh8S1odNSNfyF7Is8wo+Ehi917C39GMAitRHMPD1Kip/K3zN+MJEJlOzz0V+ituG2sfMPskbcFJ7c+pLYQ2feFFYQEi+3KsqFA3EykwEI0tBI3VpUA2iZSHIdiXER55wSNfidvAOB2Ewklv5Qr2ca14a2jCPNcr8+CblxSut3bbRS1Xd5w4HD4OJ17FuWwBsMRIe/YyRGtgO8995v3DwarwuPmu9Y8LKcs6HrX/6hA== x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015137)(444000031);SRVR:DM3NAM03HT236;BCL:0;PCL:0;RULEID:;SRVR:DM3NAM03HT236; x-forefront-prvs: 023495660C spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BY1PR14MB016713E3B89B1CF2B3DF2D86C1280BY1PR14MB0167namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2017 16:46:45.0102 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3NAM03HT236 X-OriginalArrivalTime: 02 Mar 2017 16:46:46.0840 (UTC) FILETIME=[94C20B80:01D29374] archived-at: Thu, 02 Mar 2017 16:47:01 -0000 --_000_BY1PR14MB016713E3B89B1CF2B3DF2D86C1280BY1PR14MB0167namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thank you Biju ________________________________ From: Biju N Sent: Wednesday, March 1, 2017 2:11:15 PM To: user@hbase.apache.org Subject: Re: On HBase Read Replicas From the table definition. For e.g. https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/HTableDescriptor.h= tml#getRegionReplication-- On Tue, Feb 28, 2017 at 3:30 PM, jeff saremi wrote= : > Enis > > just one more question. How would i go about getting the count of the > replica's for a table or columngroup? thanks > > ________________________________ > From: Enis S=F6ztutar > Sent: Wednesday, February 22, 2017 1:38:41 PM > To: hbase-user > Subject: Re: On HBase Read Replicas > > If you are doing a get to a specific replica, it will execute as a read > with retries to a single "copy". There will not be any backup / fallback > RPCs to any other replica. > > Only in timeline consistency mode there will be fallback RPCs. > > Enis > > On Sun, Feb 19, 2017 at 9:43 PM, Anoop John wrote= : > > > Thanks Enis.. I was not knowing the way of setting replica id > > specifically.. So what will happen if that said replica is down at > > the read time? Will that go to another replica? > > > > -Anoop- > > > > On Sat, Feb 18, 2017 at 3:34 AM, Enis S=F6ztutar > wrote: > > > You can do gets using two different "modes": > > > - Do a read with backup RPCs. In case, the algorithm that I have abo= ve > > > will be used. 1 RPC to primary, and 2 more RPCs after primary timeout= s. > > > - Do a read to a single replica. In this case, there is only 1 RPC > that > > > will happen to that given replica. > > > > > > Enis > > > > > > On Fri, Feb 17, 2017 at 12:03 PM, jeff saremi > > > wrote: > > > > > >> Enis > > >> > > >> Thanks for taking the time to reply > > >> > > >> So i thought that a read request is sent to all Replicas regardless. > If > > we > > >> have the option of Sending to one, analyzing response, and then > sending > > to > > >> another, this bodes well with our scenarios. > > >> > > >> Please confirm > > >> > > >> thanks > > >> > > >> ________________________________ > > >> From: Enis S=F6ztutar > > >> Sent: Friday, February 17, 2017 11:38:42 AM > > >> To: hbase-user > > >> Subject: Re: On HBase Read Replicas > > >> > > >> You can use read-replicas to distribute the read-load if you are fin= e > > with > > >> stale reads. The read replicas normally have a "backup rpc" path, > which > > >> implements a logic like this: > > >> - Send the RPC to the primary replica > > >> - if no response for 100ms (or configured timeout), send RPCs to th= e > > other > > >> replicas > > >> - return the first non-exception response. > > >> > > >> However, there is also another feature for read replicas, where you > can > > >> indicate which exact replica_id you want to read from when you are > > doing a > > >> get. If you do this: > > >> Get get =3D new Get(row); > > >> get.setReplicaId(2); > > >> > > >> the Get RPC will only go to the replica_id=3D2. Note that if you hav= e > > region > > >> replication =3D 3, then you will have regions with replica ids: {0, = 1, > 2} > > >> where replica_id=3D0 is the primary. > > >> > > >> So you can do load-balancing with a get.setReplicaId(random() % > > >> num_replicas) kind of pattern. > > >> > > >> Enis > > >> > > >> > > >> > > >> On Thu, Feb 16, 2017 at 9:41 AM, Anoop John > > wrote: > > >> > > >> > Never saw this kind of discussion. > > >> > > > >> > -Anoop- > > >> > > > >> > On Thu, Feb 16, 2017 at 10:13 PM, jeff saremi < > jeffsaremi@hotmail.com > > > > > >> > wrote: > > >> > > Thanks Anoop. > > >> > > > > >> > > Understood. > > >> > > > > >> > > Have there been enhancement requests or discussions on load > > balancing > > >> by > > >> > providing additional replicas in the past? Has anyone else come up > > with > > >> > anything on this? > > >> > > thanks > > >> > > > > >> > > ________________________________ > > >> > > From: Anoop John > > >> > > Sent: Thursday, February 16, 2017 2:35:48 AM > > >> > > To: user@hbase.apache.org > > >> > > Subject: Re: On HBase Read Replicas > > >> > > > > >> > > The region replica feature came in so as to reduce the MTTR and = so > > >> > > increase the data availability. When the master region containi= ng > > RS > > >> > > dies, the clients can read from the secondary regions. But to > keep > > >> > > one thing in mind that this data from secondary regions will be > bit > > >> > > out of sync as the replica is eventual consistent. Because of > this > > >> > > said reason, change client so as to share the load across diff > RSs > > >> > > might be tough. > > >> > > > > >> > > -Anoop- > > >> > > > > >> > > On Sun, Feb 12, 2017 at 8:13 AM, jeff saremi < > > jeffsaremi@hotmail.com> > > >> > wrote: > > >> > >> Yes indeed. thank you very much Ted > > >> > >> > > >> > >> ________________________________ > > >> > >> From: Ted Yu > > >> > >> Sent: Saturday, February 11, 2017 3:40:50 PM > > >> > >> To: user@hbase.apache.org > > >> > >> Subject: Re: On HBase Read Replicas > > >> > >> > > >> > >> Please take a look at the design doc attached to > > >> > >> https://issues.apache.org/jira/browse/HBASE-10070. > > >> > >> > > >> > >> Your first question would be answered by that document. > > >> > >> > > >> > >> Cheers > > >> > >> > > >> > >> On Sat, Feb 11, 2017 at 2:06 PM, jeff saremi < > > jeffsaremi@hotmail.com> > > >> > wrote: > > >> > >> > > >> > >>> The first time I heard replicas in HBase the following thought > > >> > immediately > > >> > >>> came to my mind: > > >> > >>> To alleviate the load in read-heavy clusters, one could assign > > Region > > >> > >>> servers to be replicas of others so that the load is distribut= ed > > and > > >> > there > > >> > >>> is less pressure on the main RS. > > >> > >>> > > >> > >>> Just 2 days ago a colleague quoted a paragraph from HBase manu= al > > that > > >> > >>> contradicted this completely. Apparently, the replicas do not > help > > >> > with the > > >> > >>> load but they actually contribute to more traffic on the netwo= rk > > and > > >> > on the > > >> > >>> underlying file system > > >> > >>> > > >> > >>> Would someone be able to give us some insight on why anyone > would > > >> want > > >> > >>> replicas? > > >> > >>> > > >> > >>> And also could one easily change this behavior in the HBase > native > > >> Java > > >> > >>> client to support what I had been imagining as the concept for > > >> > replicas? > > >> > >>> > > >> > >>> > > >> > >>> thanks > > >> > >>> > > >> > > > >> > > > --_000_BY1PR14MB016713E3B89B1CF2B3DF2D86C1280BY1PR14MB0167namp_--