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 AE59C200C61 for ; Tue, 11 Apr 2017 07:58:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACFB1160BA5; Tue, 11 Apr 2017 05:58:25 +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 0086F160B99 for ; Tue, 11 Apr 2017 07:58:24 +0200 (CEST) Received: (qmail 39701 invoked by uid 500); 11 Apr 2017 05:58:23 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 39680 invoked by uid 99); 11 Apr 2017 05:58:23 -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; Tue, 11 Apr 2017 05:58:23 +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 13FFCC023E for ; Tue, 11 Apr 2017 05:58:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.397 X-Spam-Level: X-Spam-Status: No, score=-0.397 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-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-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RdFLyoU9GQFy for ; Tue, 11 Apr 2017 05:58:22 +0000 (UTC) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A6A135FC7C for ; Tue, 11 Apr 2017 05:58:21 +0000 (UTC) Received: by mail-io0-f179.google.com with SMTP id t68so91811825iof.0 for ; Mon, 10 Apr 2017 22:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3b2HgzTqVOpILXpl8gCgDJONaySi1czgjus9SKS56Ak=; b=aZTUoiql3qgH99RI6L5gXET9wRhH+xCDmG8JOAypBrsgf2bOkFETVHDFUz0hRs0fzC vTWQzTmskfpAgxM43LXeZJjeH2lByHVGyrFkhC/IYbspIyJ4tuv8/ztKQ5Xoxy04iUIU sBVdsrtU1UMT9lnuhoCXZWc+A7Wa29FG88X9wFAuz1MavE14VdLWpEDi+Y+UTE3ZpRJI vih9vBbCITzEQcIzaApXRdWPbf/CQnb8E3MpWWelKvtfpGPPwAZkDO68UeluivYM2Dig JdXYKK9aO8GXa/MPlsbsnEk45iPTK4n7ZK/uq4iWo7YVqaxa4FSexaXy/8bSGrkpPInd 8D6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3b2HgzTqVOpILXpl8gCgDJONaySi1czgjus9SKS56Ak=; b=stsbWVRFl4vWsQzIR34KRR6rWwyliQmrWbLietwxbyrOXwn4qxs3gvIEF5fn9abEHF +mK3lEiuJ2YznCfwV+VIqXQd539PMOJGeZRh537cOV22jDzmDwGuxwQMt73aBtI4gLDG wldWQ1BM5Sym7tWPVaXkcDziyt3dqxIcBD6fjwZWfcpZm7yxowyMe+vsn7odT6p5fBGu EoHH6O/t4Qjq5EMpt425i7LQ5bBMuT/vBzroLvNtzNoO2R9O/yeQ5QcnJFTaNlrcLS0O CbXjSMq55Iu2xBn4ISzwUVnmxmuO3XZOSSOrm+4AOnzG5fnBBSmr8/d6ND9O1Rt7a5LH srCg== X-Gm-Message-State: AN3rC/7aEv1Z5mOFrxWPZD7FqvFzH8iTB8v+vChCtRofRbN0Oen716o653/ZIfeg+AdOEa6Y4LP0Fbm6dYDvxw== X-Received: by 10.36.33.73 with SMTP id e70mr15183711ita.9.1491890300900; Mon, 10 Apr 2017 22:58:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.87 with HTTP; Mon, 10 Apr 2017 22:58:20 -0700 (PDT) From: =?UTF-8?B?6IyD6IyD5qyj5qyj?= Date: Tue, 11 Apr 2017 13:58:20 +0800 Message-ID: Subject: A new Mutilple-Type Queue idea to handle multiple workloads To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=001a1147c5be6de047054cddc772 archived-at: Tue, 11 Apr 2017 05:58:25 -0000 --001a1147c5be6de047054cddc772 Content-Type: text/plain; charset=UTF-8 Now, the feature HBASE-11355 seperates the single Call Queue into MutilQueue(get call queue, write call queue and scan call queue), and each type queue can specify fixed number of handlers. It's helpful in some outages , to avoid all read or all write requests ran out of handler threads. however, there are still several problems : 1. workloads in the same request type(get/write/scan) may influence each other as before, consider the following scenario: (1) both client-1 and client-2 send write requests, the client-1 write the large objects(100KB record) , and client-2 write the small objects (1KB record). the client -1 will ran out of all handler threads of the write-queue, and decrease the client-2 throughput (2) both client-3 and client-4 send get requests, the client-3 search all data from lots of hfiles( all search key are equally popular), read latency is high. the client-4 do not require any I/O resources(say, data is cached). the client-3 will ran out of all handler threads of the get-queue, and increase the read latency of client-4 2. administor can't increate/decrease the handler number for the specified queue easily we are trying to implement a new Mutilple-Typed Queue, administor can create a queue with a specified number of handler for specified table and specified request type(get/write/scan), as: create_queue 'queue1' ,{'handler' => 100} grant_queue 'table1','scan','queue1' grant_queue 'tableN','scan','queue1' create_queue 'queue2' ,{'handler' => 50} grant_queue 'table2','write','queue2' the idea based on the fact that the workload for a specified table and request type will be unique. in addition, administor can manager the queue with commands: //easily increase/decrease handlers alter_queue 'queue1' ,{'handler' => 50} //list all queues list_queues //drop the specified queue drop_queue 'queue1' I am wondering if the developers could look at the idea and let me know if anything is incorrect or inaccurate, or if I have missed anything. Thanks a lot for your help! --001a1147c5be6de047054cddc772--