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 B0FD1200B96 for ; Thu, 22 Sep 2016 05:58:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AF8EE160ADE; Thu, 22 Sep 2016 03:58: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 CB717160ADB for ; Thu, 22 Sep 2016 05:58:52 +0200 (CEST) Received: (qmail 96055 invoked by uid 500); 22 Sep 2016 03:58:51 -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 96043 invoked by uid 99); 22 Sep 2016 03:58:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Sep 2016 03:58:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 8E8FBC0D72 for ; Thu, 22 Sep 2016 03:58:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 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, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2LGbhNicbzKi for ; Thu, 22 Sep 2016 03:58:49 +0000 (UTC) Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 310F05F396 for ; Thu, 22 Sep 2016 03:58:48 +0000 (UTC) Received: by mail-it0-f43.google.com with SMTP id r192so146657240ita.0 for ; Wed, 21 Sep 2016 20:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gmpeintAmAC7qHxtXku0EQb8NzvMqfI2UnXl8LYoGis=; b=BP6nLRBeY258lVMwRuLDPRe9FKO1SlpmahRa4ExBubxjF1gAcTJQjB9n/xWdL5IbqD C3Wvd2LkADTxhsFhf4iSRVVOgouI+IIL/0wo3y1HL1267Px0lFxa3bIKawjeIroYbLuC tbmdrl0rfKP0er2iqKdseMYwFA25kn/ow0bwsdyTYw7VO6O8zico4R7dQ7u5ERRPe1mW Pns4zKKLAx7vH+9acTomGj/aIh0MJzYdEu6xw/wp4vEe6fxM1ZD0SH9h+kkTKONCkkva UN2GrA7Qtd33Q2WqKwzp7CtMB7G0NWCDs7MbZWJSezVCFTBvoY/b1zXNW5z6BZXXifO0 Q5iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gmpeintAmAC7qHxtXku0EQb8NzvMqfI2UnXl8LYoGis=; b=TRA1XKqzn74Fl5Q9mbBfOq02Ly7kojcb7671a4/Il/RhgE6TsIC4rOWl/GOS5ZsFmM m36fTKFSuy2vMZnvs4/zPx9b5YXclY7NbG8DrgFxXiBgDLaS0M8Dd9UMvrIBzUbGAH26 JvCaHojjrmsVPPp9cfmwF+Y94LKrslkiH6XJdyjnvShhiqYfzWcT0cPiCt26ECQhHDEN 5v2fHj6fl7A4qq1yzMaYrxrtYx8OCiLErmDeXf2jjh7ZPiZ2g8EbQRjnjLiD3qLex7nn zIv8tmZdBSUXoCRY7Oj7vNJ8RNtF6ApYXYxIoztLDPLUeq5Nb0Hm1RfJwVAFlBWHtYsZ o9iA== X-Gm-Message-State: AE9vXwNaNPrZFKPs6MVuRBnoWbuLi987Y4hnoYDukI1pC5OtZX2hlCcoN82EaC3NGe4AMPqWywKRENVqNTm0JA== X-Received: by 10.36.61.69 with SMTP id n66mr8245306itn.92.1474516727126; Wed, 21 Sep 2016 20:58:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.33.6 with HTTP; Wed, 21 Sep 2016 20:58:46 -0700 (PDT) In-Reply-To: <2040270885.2727916.1474515183637@mail.yahoo.com> References: <198413734.2444994.1474478314310.ref@mail.yahoo.com> <198413734.2444994.1474478314310@mail.yahoo.com> <2040270885.2727916.1474515183637@mail.yahoo.com> From: Guanghao Zhang Date: Thu, 22 Sep 2016 11:58:46 +0800 Message-ID: Subject: Re: Hbase throttling issues To: user@hbase.apache.org, Sumit Nigam Content-Type: multipart/alternative; boundary=001a1143edfcbc779e053d10ade7 archived-at: Thu, 22 Sep 2016 03:58:53 -0000 --001a1143edfcbc779e053d10ade7 Content-Type: text/plain; charset=UTF-8 Did you try to use REQUEST_NUMBER as throttle type? 2016-09-22 11:33 GMT+08:00 Sumit Nigam : > Hi Guanghao, > > This throttling error shows up as soon as I start hbase. So, ideally there > shouldn't be too many prior operations in play here. Plus, the error shows > up even when my table has hardly any data (possibly in kbs) and I have set > throttling limit to be ~10GB. > > Thanks,Sumit > > From: Guanghao Zhang > To: user@hbase.apache.org; Sumit Nigam > Sent: Thursday, September 22, 2016 7:37 AM > Subject: Re: Hbase throttling issues > > All scan operations were throttled? Now it use the avg size of all previous > operations to check quota. Maybe the previous scan operation read too much > data. > > 2016-09-22 1:18 GMT+08:00 Sumit Nigam : > > > Hi Hbase experts, > > > > Our application is unable to scan or read from hbase tables, when > > throttling is set. We are getting ThrottlingException every time. The > error > > is seen more frequently when the number of hbase pre splits is > > increased. The size tables for which this error is showing is empty ( > > during some runs it was very low in the order of few kbs). Have tried > both > > rate limiters already - average and fixed. Can't understand why read rate > > limit exceeds when there is hardly any data in hbase. Anyone has faced > this > > issue before? > > > > Setup Details: > > > > Hbase version : 1.1.2 > > Number of region servers :4 > > Number of regions : 116 > > HeapMemory for Region Server : 2GB > > > > Quotas set : > > TABLE => ns1:table1 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, > LIMIT > > => 10G/sec, SCOPE => MACHINE > > TABLE => ns2:table2 TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, > LIMIT > > => 10G/sec, SCOPE => MACHINE > > > > Following is the error we faced. Pasting debug logs of regions server: > > > > 2016-09-17 22:35:40,674 DEBUG [B.defaultRpcServer.handler= > 55,queue=1,port=58526] > > quotas.RegionServerQuotaManager: Throttling exception for user=root > > table=ns1:table1 numWrites=0 numReads=0 numScans=1: read size limit > > exceeded - wait 0.00sec > > > > 2016-09-17 22:35:40,676 DEBUG [B.defaultRpcServer.handler= > 55,queue=1,port=58526] > > ipc.RpcServer: B.defaultRpcServer.handler=55,queue=1,port=58526: callId: > > 52 service: ClientService methodName: Scan size: 28 connection: > > 10.65.141.170:42806 > > > > org.apache.hadoop.hbase.quotas.ThrottlingException: read size limit > > exceeded - wait 0.00sec > > > > at org.apache.hadoop.hbase.quotas.ThrottlingException. > > throwThrottlingException(ThrottlingException.java:107) > > > > at org.apache.hadoop.hbase.quotas.ThrottlingException. > > throwReadSizeExceeded(ThrottlingException.java:101) > > > > at org.apache.hadoop.hbase.quotas.TimeBasedLimiter. > > checkQuota(TimeBasedLimiter.java:139) > > > > at org.apache.hadoop.hbase.quotas.DefaultOperationQuota.checkQuota( > > DefaultOperationQuota.java:59) > > > > at org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota( > > RegionServerQuotaManager.java:180) > > > > at org.apache.hadoop.hbase.quotas.RegionServerQuotaManager.checkQuota( > > RegionServerQuotaManager.java:125) > > > > at org.apache.hadoop.hbase.regionserver.RSRpcServices. > > scan(RSRpcServices.java:2265) > > > > at org.apache.hadoop.hbase.protobuf.generated. > > ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32205) > > > > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2114) > > > > at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101) > > > > at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop( > > RpcExecutor.java:130) > > > > at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107) > > > > at java.lang.Thread.run(Thread.java:745) > > > > > > Thanks, > > > > Sumit > > > > --001a1143edfcbc779e053d10ade7--