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 1612B1852C for ; Tue, 8 Mar 2016 17:20:26 +0000 (UTC) Received: (qmail 69895 invoked by uid 500); 8 Mar 2016 17:20:24 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 69826 invoked by uid 500); 8 Mar 2016 17:20: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 69814 invoked by uid 99); 8 Mar 2016 17:20:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2016 17:20:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 905791A0C2C for ; Tue, 8 Mar 2016 17:20:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.28 X-Spam-Level: * X-Spam-Status: No, score=1.28 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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] autolearn=disabled Authentication-Results: spamd2-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 (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Mktmhjx0TncE for ; Tue, 8 Mar 2016 17:20:21 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A22045FAF2 for ; Tue, 8 Mar 2016 17:20:20 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id m7so20356384obh.3 for ; Tue, 08 Mar 2016 09:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=sBkgDiJPfVs8cn1TwKocEOpa3nPjy1S+QlPVqe6wNTM=; b=qeeKaMwoTpSTQmBvZhNiA7NxcKs8i00lmBb7vWM1FyzrQPbG0kNTh4YHsXxGXlL1g5 2dwMlCSrmQT8OuJsM5PXA8mMrMLekPoF0QSUt6Itoet7XC18L0deWyoe+R8jKZmHntbZ QRUpdjGvStVV6E6JuF6Elw3tJZ8DQ7lLhc9w39eJCNMInD3ekeW8rhRwAPn6bULsP0hW JnPlhvuzPDaOQYwUb9SpC3rqK0EephTuATGXGbXtVmWWQjwWw3giQHQIbF5MW+JlLRx+ 0RdYi5E52EPMcEKLjEk4JcjeIsV8rE0kayufuq3FGxTC8Z7tJudUIAWKwVlJUg4gYEyf BLkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=sBkgDiJPfVs8cn1TwKocEOpa3nPjy1S+QlPVqe6wNTM=; b=Kt1rOeayR7jrRgXoaFRIMXS9KkbJBa7E0r533xyDUa6YPfMjn0iJzCx/oe9iV8xtce EJndUwgC5sk3iGLdgm/bgLpd/pYouQPDLlJKxz++/CtOOr3xQD32WEtFqvYP70mz9WoS NqKkkp+6ZOkInVCnX9yzZo4VtOsZblR4TjZ9GnUCIQNFfD5f8fhM2zbWhNnHYq7GwJxQ o9mFt8vomQPkhbm/R+0zqxsCIFtM1RhHFHuWknobiqqegtS+NC5v0AR9rOEzIM5sb1LE xGewip9YQM6ggcFLV65Ct7uWKHvveQGCPIjOU4mnETrlOTyd0ooTyzfn0yWeG3jWO4Vs 1RLA== X-Gm-Message-State: AD7BkJJnWbJ/NSBxcqSe/OSn+QabgK9W+Yqzw+s1R68MqJ7Z7N1TeyPkBaCedji8WBX5jhL/AQVe9FMOOmvtLg== MIME-Version: 1.0 X-Received: by 10.60.50.98 with SMTP id b2mr17875844oeo.38.1457457619254; Tue, 08 Mar 2016 09:20:19 -0800 (PST) Sender: saint.ack@gmail.com Received: by 10.182.233.193 with HTTP; Tue, 8 Mar 2016 09:20:19 -0800 (PST) In-Reply-To: <1ccdad83-523d-4621-b386-a59438e482c1@me.com> References: <1ccdad83-523d-4621-b386-a59438e482c1@me.com> Date: Tue, 8 Mar 2016 09:20:19 -0800 X-Google-Sender-Auth: N1vqaIvoFVHsnLiDfjzLeyP_Q44 Message-ID: Subject: Re: HBase poor write performance From: Stack To: Hbase-User Content-Type: multipart/alternative; boundary=001a11c1e276abc3ae052d8ccb09 --001a11c1e276abc3ae052d8ccb09 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 8, 2016 at 8:28 AM, Akmal Abbasov wrote: > Hi, > I'm testing HBase to choose the right hardware configurations for a heavy > write use case. I'm testing using YCSB. > The cluster consist of 2 masters, and 5 regionservers(4 cores, 14GB ram, > 4x512GB SSD). > I've created a new table in HBase, presplit it to 50 regions. I'm running > 3 clients each running 50 threads, to insert data. > What happens if you double the number of clients? > I'm using the default HBase settings. > Our defaults are intentionally conservative set for broad appeal. For now, there is an expectation that configs are adjusted to suit the loadings. > After running few tests, I can see that the cluster is underutilized, in > fact memory usage is around 30%. > Which memory? Java heap? Or the systems' memory? If java heap, we make broad allocations for cache and write-time memstore. You might allocate more to memstore if you are write-centric (Later versions of hbase try to do this ergonomically). > The main problem I see for now is compactions, compactionQueueLength is > growing very fast, and compaction process is always running. > Compactions running all the time while you are under write load is 'normal'. How are you seeing this manifest as a 'problem'? Show us a bit of your log from a regionserver and take a few thread dumps while it is running so we can make suggestion. > I found that there are hbase.regionserver.thread.compaction.small and hbase.regionserver.thread.compaction.large > but couldn't find information regarding their default values. > Yes. This stuff is missing from the doc, in code only. Lets figure if they need adjustment first. > I am also planing to increase the regions number and the memstore size to > increase utilization of the cluster and performance. > Which other settings should be tuned to improve both utilization and > performance? > You've browsed this section http://hbase.apache.org/book.html#performance ? > Thank you. > > > I'm using HBase 0.98.7 and regionserver heap size is 7GB. > Can you use a later HBase? 1.2.0 just got released. St.Ack > > Regards, Akmal > --001a11c1e276abc3ae052d8ccb09--