Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7F2F18BB8 for ; Fri, 4 Sep 2015 16:19:25 +0000 (UTC) Received: (qmail 97224 invoked by uid 500); 4 Sep 2015 16:19:24 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 97157 invoked by uid 500); 4 Sep 2015 16:19:24 -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 97140 invoked by uid 99); 4 Sep 2015 16:19:23 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2015 16:19:23 +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 4605AF189D for ; Fri, 4 Sep 2015 16:19:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.899 X-Spam-Level: *** X-Spam-Status: No, score=3.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id t4KZmbROT6ai for ; Fri, 4 Sep 2015 16:19:17 +0000 (UTC) Received: from mail-yk0-f172.google.com (mail-yk0-f172.google.com [209.85.160.172]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 2796C42B36 for ; Fri, 4 Sep 2015 16:19:17 +0000 (UTC) Received: by ykdg206 with SMTP id g206so25677844ykd.1 for ; Fri, 04 Sep 2015 09:19:11 -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 :content-type; bh=vIHdgTDHKr9SgAitONEFTLjZLVxvDI3Urn7mvhCjJKo=; b=K8G6HCFscZRTRhX2PYbGkcENb/DLxrf4f+f+OH8dWSH2qtLuSe2rPpO7RzWh/dsYcG HF/dKL79pQkLiFgmp2pXimDM+Eb/hid7JetI3ZwXIZS0a7jeSDQ5ryjXeI+z1/B9JQVX GEg0lJNN2ckSreVQ6580uQJH1+subbUUxRqbJg9OwkMp0D/FfAcoTvRl1UWYqZyYe3Uq JeytgOO2sKfLEBQrYQ7u2nNF1bUrVpXMAA1YK4J8ANh/93W5wf8pGF/1jSwK4h885Icl +tt2kRuGzjNc9G8j23GgcRtXF90iUIv6qcxQGJyJVv3rycGyTz/Wvh+84fozFeQEEKOi lLPA== X-Received: by 10.170.110.210 with SMTP id c201mr5268368ykb.1.1441383551084; Fri, 04 Sep 2015 09:19:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.214.208 with HTTP; Fri, 4 Sep 2015 09:18:51 -0700 (PDT) In-Reply-To: References: From: Matteo Bertozzi Date: Fri, 4 Sep 2015 09:18:51 -0700 Message-ID: Subject: Re: Question about RPC queues To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a1137948e8c2eb8051eee4263 --001a1137948e8c2eb8051eee4263 Content-Type: text/plain; charset=UTF-8 scan is chunked in small pieces, it is not a single long operation. what fifo vs deadline does is pushing the scan chunk back in the queue if you have multiple operation with higher priority. after N runs of scanner.next() you'll be pushed back following a sqrt(numOfNext * weight) http://blog.cloudera.com/wp-content/uploads/2014/11/hbase-multi-f2.png so, the more next you call the further your scan chunk will be delayed. but once your scan chunk is in the executor, there is no way (at the moment) to eject that task, so if you have a single thread and you have an hi-priority get that get has to wait the scan chunk to be executed. unless you have tons of requests to fill the queue and a super-long scan (or you increase the weight to simulate that) you'll probably not be able to notice any difference. On Fri, Sep 4, 2015 at 9:05 AM, ramkrishna vasudevan < ramkrishna.s.vasudevan@gmail.com> wrote: > Hi Kulkarni > > Which version of HBase are you using? Just to confirm are you running as > super user only? I think there are some meta handlers also with which > super user calls are handled. > > From the UI are you able to monitor the handlers and see how many are > active and what is the status of it. > > Regards > Ram > > On Fri, Sep 4, 2015 at 7:42 PM, kulkarni.swarnim@gmail.com < > kulkarni.swarnim@gmail.com> wrote: > > > Hello all, > > > > So I am trying to play around with de-prioritizing long running scanners > > feature added with HBASE-10993. Essentially I wanted to see how > "deadline" > > queue prevents contention. This is what my did for my setup. Changed the > > callqueue type to "fifo" and reduced the number of RPC handlers to 1 to > > ensure that I have only one RPC queue in place. I am also testing on a > > cluster with only one RS to again make sure that there is only one RPC > > handler working. I confirmed that my settings are properly in place with > > the following message in the hmaster logs after I restarted my cluster. > > > > "INFO org.apache.hadoop.hbase.ipc.SimpleRpcScheduler: Using fifo as user > > call queue, count=1" > > > > I now kicked off a long running "scan" first and while the scan was > running > > kicked off another "get". My hope was that with fifo, we should see a > > contention and the "get" would essentially hang until the "scan" finished > > as it would be placed behind the "scan" request in the RPC queue. But I > see > > the gets still return quickly irrespective of whether the scan is running > > or not. > > > > Is there something obvious that I am missing here to be able to reproduce > > the contention? > > > > Thanks, > > Swarnim > > > --001a1137948e8c2eb8051eee4263--