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 5CAF7200C2E for ; Sun, 19 Feb 2017 06:35:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5B237160B71; Sun, 19 Feb 2017 05:35: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 7D26D160B66 for ; Sun, 19 Feb 2017 06:35:52 +0100 (CET) Received: (qmail 65285 invoked by uid 500); 19 Feb 2017 05:35:51 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 65272 invoked by uid 99); 19 Feb 2017 05:35:50 -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; Sun, 19 Feb 2017 05:35:50 +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 D5260C14DD for ; Sun, 19 Feb 2017 05:35:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.629 X-Spam-Level: *** X-Spam-Status: No, score=3.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-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-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 1dbbYikGAng7 for ; Sun, 19 Feb 2017 05:35:47 +0000 (UTC) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 6D8E45FE22 for ; Sun, 19 Feb 2017 05:35:47 +0000 (UTC) Received: by mail-it0-f41.google.com with SMTP id k200so19980994itb.1 for ; Sat, 18 Feb 2017 21:35:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=4tY1TK+Y3NGHivmxJAgP88CXrM0+143JZ6phNCscxx4=; b=JdKBtf/9MTCfZinVoXLKstlGLgCZYYKX5oUP2zTe0PbjbAivVzY3qWItDS6MLewInI 0Ah5cItHclhw72iWtdSSpHlM2RIKhptHCf/xFUcbri/qRsPd8EWMKi/CHPStMl8anWgu mxaX2kSHbUs5WposroDNUALtKhuCsI8BCT9HwvC0NFs3PtxzTqqedWxKVVTJyXNGhJiA IpFYLBNvJVPEBtAg/WACPKWNpmM1IYG8lIL1lIdeRGk2TLGmn+PNKrWoDLny0bNj3LgZ 6/DFE9UQ2yUJgp+l5iu22zDu+liO5ypUoiO7AsSwvSmWYzVN/mJUhDTx57smayej8JQV inZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4tY1TK+Y3NGHivmxJAgP88CXrM0+143JZ6phNCscxx4=; b=LU1VunrlRdKmgOOVuj6WsHLMzOzQv9lcGMNyrFrBpMvKO5BGmyENH6HxeJ69LneZHY 3x/zAfeTTRstmfZ0sjAWfoBP8r/iFNDRqWYserDTC742/A8CdyxrY62c2Sasvly/O1FE HkThv2cMF8oGekNHE0KZCZbfsfNJOHWNuML6Z2tLR8bttup08YK21ex/U1Ruuz4UkjOc Kh3MZgT4U2NBJivOO7L0+9Zr7HNV64sCqLlyyvViBV7uf7QuEheI1N+9qGk63S5hq+JR Hb429KnKQJalepQ2kp19VMszxg6GUkZR0YJumshd5e98WrE1l6Bf9w/u01rrfpjxFx0Q QKwg== X-Gm-Message-State: AMke39kzZk933boby5hSc1tqbOq5G7gRWNmpf+ZcjLKJPReVArAXSocAq+0uHwBCHtrfE5Xrkr/OO6ZoMbhQEA== X-Received: by 10.36.252.65 with SMTP id b62mr13513933ith.38.1487482540299; Sat, 18 Feb 2017 21:35:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.134.69 with HTTP; Sat, 18 Feb 2017 21:35:19 -0800 (PST) In-Reply-To: References: From: Dong Lin Date: Sat, 18 Feb 2017 21:35:19 -0800 Message-ID: Subject: Re: [DISCUSS] KIP-124: Request rate quotas To: dev@kafka.apache.org Content-Type: multipart/alternative; boundary=94eb2c0b1dde6ca0170548db841c archived-at: Sun, 19 Feb 2017 05:35:53 -0000 --94eb2c0b1dde6ca0170548db841c Content-Type: text/plain; charset=UTF-8 I realized the main concern with this proposal is how user can interpret this CPU-percentage based quota. Since this quota is exposed to user, we need to explain to user how this quota is going to impact their application performance and convince them that the quota is now too low for their application. We can able to do this with byte-rate based quota. But I am not sure how we can do this with CPU-percentage based quota. For example, how is user going to understand whether 1% CPU is OK? On Fri, Feb 17, 2017 at 10:11 AM, Onur Karaman wrote: > Overall a big fan of the KIP. > > I'd have to agree with Dong. I'm not sure about the decision of using the > percentage over the window as opposed to request rate. It's pretty hard to > reason about. I just spoke to one of our SRE's and he agrees. > > Also I may have missed it, but I couldn't find information in the KIP on > where this window would be configured. > > On Fri, Feb 17, 2017 at 9:45 AM, Dong Lin wrote: > > > To correct the typo above: It seems to me that determination of request > > rate is not any more difficult than determination of *byte* rate as both > > metrics are commonly used to measure performance and provide guarantee to > > user. > > > > On Fri, Feb 17, 2017 at 9:40 AM, Dong Lin wrote: > > > > > Hey Rajini, > > > > > > Thanks for the KIP. I have some questions: > > > > > > - I am wondering why throttling based on request rate is listed as a > > > rejected alternative. Can you provide more specific reason why it is > > > difficult for administrators to decide request rates to allocate? It > > seems > > > to me that determination of request rate is not any more difficult than > > > determination of request rate as both metrics are commonly used to > > measure > > > performance and provide guarantee to user. On the other hand, the > > > percentage of processing time provides a vague guarantee to user. For > > > example, what performance can user expect if you provide 1% processing > > time > > > quota to this user? How is administrator going to decide this quota? > > Should > > > Kafka administrator continues to reduce this percentage quota as number > > of > > > users grow? > > > > > > - The KIP suggests that LeaderAndIsrRequest and MetadataRequest will > also > > > be throttled by this quota. What is the motivation for throttling these > > > requests? It is also inconsistent with rate-based quota which is only > > > applied to ProduceRequest and FetchRequest. IMO it will be simpler to > > only > > > throttle ProduceRequest and FetchRequest. > > > > > > - Do you think we should also throttle the inter-broker traffic using > > this > > > quota as well similar to KIP-73? > > > > > > Thanks, > > > Dong > > > > > > > > > > > > On Fri, Feb 17, 2017 at 9:05 AM, Rajini Sivaram < > rajinisivaram@gmail.com > > > > > > wrote: > > > > > >> Hi all, > > >> > > >> I have just created KIP-124 to introduce request rate quotas to Kafka: > > >> > > >> https://cwiki.apache.org/confluence/display/KAFKA/KIP-124+-+ > > >> Request+rate+quotas > > >> > > >> The proposal is for a simple percentage request handling time quota > that > > >> can be allocated to **, ** or **. > > There > > >> are a few other suggestions also under "Rejected alternatives". > Feedback > > >> and suggestions are welcome. > > >> > > >> Thank you... > > >> > > >> Regards, > > >> > > >> Rajini > > >> > > > > > > > > > --94eb2c0b1dde6ca0170548db841c--