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 15DA018EB3 for ; Sun, 1 Nov 2015 18:24:49 +0000 (UTC) Received: (qmail 63194 invoked by uid 500); 1 Nov 2015 18:24:44 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 63129 invoked by uid 500); 1 Nov 2015 18:24:44 -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 63115 invoked by uid 99); 1 Nov 2015 18:24:39 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2015 18:24:39 +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 22F91C2345 for ; Sun, 1 Nov 2015 18:24:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=groupon.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bPDJUf0SFvRL for ; Sun, 1 Nov 2015 18:24:38 +0000 (UTC) Received: from mx0a-001a0501.pphosted.com (mx0a-001a0501.pphosted.com [67.231.144.137]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6FC1D20751 for ; Sun, 1 Nov 2015 18:24:37 +0000 (UTC) Received: from pps.filterd (m0046788.ppops.net [127.0.0.1]) by mx0a-001a0501.pphosted.com (8.15.0.59/8.15.0.59) with SMTP id tA1ILNKo043519 for ; Sun, 1 Nov 2015 12:24:30 -0600 Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx0a-001a0501.pphosted.com with ESMTP id 1xwfuehuq7-1 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Sun, 01 Nov 2015 12:24:30 -0600 Received: by lfbf136 with SMTP id f136so39159764lfb.0 for ; Sun, 01 Nov 2015 10:24:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=QKjvN57Dg6LfL8KY9fzkMPTUvY6lHr+ywbM6L2a6FcA=; b=b+8LcjfiqPPwEdS/OfdBoD4k2Lw9smggfnej8DaOsqOJsLVuv+K5Bb2j0Iy7djZl9l eGfvWTvsAwswfrbUPDl9C2gdyh5x61o0966PEWQtmtfSIjeJQU8jnDRhV/Oc/XbIOc3A O7Ldg2G4LJYTjs8IjcWPyZLCyIoDwsxbKIwl7XN0pwZ4+cXwoPQ5UTrIHshbn1bekxI7 QL7KwJESM3pxet2Pc8rk/hCkFMnmVJL83LC70rYVXCOQGtjymDNZIvBIxame45DHtujF VMe1bsziU4q1p7eqqNrchveO/wBZNhf7o/knsONOMaUy2lELJD+dbAbyv6z2OcVSp2Wt ScKQ== X-Gm-Message-State: ALoCoQmYiUg39+3rB6/qCr4pV0nj4zELGnypHzadaNHvnRCy55KEhXEj4ScaYSPOTI33tnCnx5GOCaj9Ti3LscLhf8VeJVWGDoxTtT8sV+/tFu59Ftua74TQKLp6THQWouKQvw/sHNHS X-Received: by 10.25.207.82 with SMTP id f79mr5525291lfg.73.1446402267569; Sun, 01 Nov 2015 10:24:27 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.25.207.82 with SMTP id f79mr5525287lfg.73.1446402267294; Sun, 01 Nov 2015 10:24:27 -0800 (PST) Received: by 10.112.181.69 with HTTP; Sun, 1 Nov 2015 10:24:27 -0800 (PST) Date: Sun, 1 Nov 2015 10:24:27 -0800 Message-ID: Subject: Slow reads coinciding with higher compaction time avg time From: Girish Joshi To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a114128ac58867505237ec596 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-11-01_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe --001a114128ac58867505237ec596 Content-Type: text/plain; charset=UTF-8 Hello In my hbase cluster, I observe the following consistently happening over several days:- - There is a spike in compaction time avg time metric. At the same time the swap bytes in and swap bytes out also have higher value. - Around the same time, I see the FS PRead and FS Read latencies and client latencies doing random reads increase. My hbase cluster consisting of 16 nodes and setup with a replication to another cluster of 16 nodes has the following workload:- - There are around 4 tables which have lot of write activity(around 500k per second writes on m1/m15 moving average). 2 of these tables have atomic counter columns keeping track of some analytics data and being incremented with every write. - There are 2 tables which receive bulk uploaded data periodically(around once a day) - We expect reads at around 100k per second mainly from tables which have bulk upload data and the one which has counter columns. The read latencies(p99) spike up to around 1000-5000 ms when the above compaction time avg time metric increases. In other times, they are below 100 ms. I have set the hbase.hregion.majorcompaction to 0 on region servers; I plan to set it to 0 on master nodes too so that I can take out the possibility of time triggered major compactions being the problem. But I suspect there are lot of minor compactions and those leading to major compactions happening at the time of spikes. *Any suggestions on how to avoid this situation of read latency spikes and have better read performance?* Thanks, Girish. --001a114128ac58867505237ec596--