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 B1B8A200BFA for ; Thu, 12 Jan 2017 17:49:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B05AC160B40; Thu, 12 Jan 2017 16:49:46 +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 EF400160B29 for ; Thu, 12 Jan 2017 17:49:45 +0100 (CET) Received: (qmail 49796 invoked by uid 500); 12 Jan 2017 16:49:27 -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 49557 invoked by uid 99); 12 Jan 2017 16:49:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2017 16:49:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7F52E180BA9 for ; Thu, 12 Jan 2017 16:49:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Nxf3L4BKebVv for ; Thu, 12 Jan 2017 16:49:04 +0000 (UTC) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.161.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 02EF25F3F5 for ; Thu, 12 Jan 2017 16:49:03 +0000 (UTC) Received: by mail-yw0-f173.google.com with SMTP id a10so15418168ywa.3 for ; Thu, 12 Jan 2017 08:49:03 -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=8ySUrpAotTPhJWzqZxRQNoldnxgNfZVi1oCgarMgH2Y=; b=exgK2p1beRMO/eCDu9YEthTsEL+FeGarYqhJHqIAxjYjAvhMfbbVH4/KMzjZhI8xiz 5LFZ92cgNQkT4eq6wzplLAEVcKfm1Y7LQUkjZ1CJQx2sGX+VAMXPtnlRiXolOqnPg0XH 2PKnEaBuDeQj77JDCjb9jeuFXCyH5Fj6V6kfEV0j39GvLpAWViiLv78LCPfs2SyItsom +x6bGtNaM6MJ6zy8ckS97CSjE4jerbmSETD7/os0ljtqtgvU4yW0Tt8yQ66Ch2q+ZY/W 7+vh3D/XkqJq+cbOcfbVsKoLiQHk7M4Ax3l0cGRwVss8O+yRLcUGou6PNk40CYuZip/X wBTQ== 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=8ySUrpAotTPhJWzqZxRQNoldnxgNfZVi1oCgarMgH2Y=; b=r284yxSIp0jc/V0oC0Q/xnFXlsWDr6D7aIkdre3h3/Th+FBf/RDrlRC8485c8MBRWm EwiBTasgFkp6XY+J+U4YA5seMDrPYx3GvimphZwdYhOUTFucCsgdIRUpwLGCdJQmHioe pPRC0KSkWYCdibAUfd8Ds9WByF4+rdqRCM3cwh6e6m21b6KfFTlUmHBYE7LWiLMod8aj cbOTeGk8f89qnT7A5unsQgDuWaNvUiLTqalcmTIkBiYyNSeetoan+gcEhoZ+4WMNCmn8 mVRKwdYYhKwCRkDhTeckYS9VnP/h4J/fZhVXsh+PYxOlUYris8xsDxxkZCU0XH8uVVK5 NDkQ== X-Gm-Message-State: AIkVDXJL3bgFceqCs1YsiTeYEsfu3oT/0ocPlxjLmOjKq3c2qbyh6uKfk40s4cdpjyGC2tv4vgiE4NKXyI2jeA== X-Received: by 10.129.91.132 with SMTP id p126mr12114832ywb.243.1484239743450; Thu, 12 Jan 2017 08:49:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.244.79 with HTTP; Thu, 12 Jan 2017 08:49:03 -0800 (PST) In-Reply-To: References: From: Ted Yu Date: Thu, 12 Jan 2017 08:49:03 -0800 Message-ID: Subject: Re: StochasticLoadBalancer questions To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a114c7862ab93bf0545e87e20 archived-at: Thu, 12 Jan 2017 16:49:46 -0000 --001a114c7862ab93bf0545e87e20 Content-Type: text/plain; charset=UTF-8 For #2, I think MemstoreSizeCostFunction belongs to the same category if we are to adopt moving average. Some factors to consider: The data structure used by StochasticLoadBalancer should be concise. The number of regions in a cluster can be expected to approach 1 million. We cannot afford to store long history of read / write requests in master. Efficiency of cost calculation should be high - there're many cost functions the balancer goes through, it is expected for each cost function to return quickly. Otherwise we would not come up with proper region movement plan(s) in time. Cheers On Wed, Jan 11, 2017 at 5:51 PM, Ted Yu wrote: > For #2, I think it makes sense to try out using request rates for cost > calculation. > > If the experiment result turns out to be better, we can consider using > such measure. > > Thanks > > On Wed, Jan 11, 2017 at 5:34 PM, Timothy Brown > wrote: > >> Hi, >> >> I have a couple of questions about the StochasticLoadBalancer. >> >> 1) In CostFromRegionLoadFunction.getRegionLoadCost the cost is weights >> later samples of the RegionLoad more than previous ones. For example, with >> a queue size of 4 it would be (.5 * load1 + .25*load2 + .125*load3 + >> .125*load4). Is this the intended behavior? >> >> 2) Would it make more sense to calculate the ReadRequestCost and >> WriteRequestCost as rates? Right now it looks like the cost is just based >> off the total number of read/write requests a region has gotten over its >> lifetime. >> >> -Tim >> > > --001a114c7862ab93bf0545e87e20--