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 9A513DD73 for ; Thu, 26 Jul 2012 17:18:41 +0000 (UTC) Received: (qmail 18849 invoked by uid 500); 26 Jul 2012 17:18:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 18813 invoked by uid 500); 26 Jul 2012 17:18:39 -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 Delivered-To: moderator for user@hbase.apache.org Received: (qmail 48861 invoked by uid 99); 26 Jul 2012 12:33:44 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of padmanaban.mathulu@gmail.com designates 74.125.82.169 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4cCmYdneot1aFs7OcfD7H2f5TtAcaL5TqvgwsU4lcP4=; b=Dxt78A1scp+0vEJAHn2eqGDMy7sOtauIaRhWu/IkaOTj+ENAFs6Qn781wPy9xs1SMm dVrwACiT/MEE5LXp9iupecdPbUhBONaI+hirL/kWXjxYnqgz+CwC5/AHHSFAcxLDXxRl C28RzPhj0857rv9x2juKBco3obQmc3rSOMh1GdZkPoaBC9BONU+LIdHRzvOEvw/LeAiI 8R0ea8QkdbfXHiwiLLMw0VaFGd1ER7VN91/EWwVnk9bwuySrDcUSuqRXVGAAyRW5/mOW v2rSm/KIAav3HAFZ6+ng7CP6feJspJAjONhJHm1pwBioHi+dSsOYKAnFJg8+oUjn36h6 RyBg== MIME-Version: 1.0 Date: Thu, 26 Jul 2012 18:03:17 +0530 Message-ID: Subject: HBase datamodel to purge old data From: Padmanaban Mathulu To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d043bdb4ec84e1004c5bacc1e X-Virus-Checked: Checked by ClamAV on apache.org --f46d043bdb4ec84e1004c5bacc1e Content-Type: text/plain; charset=ISO-8859-1 Hi, We have the following use case: - Store telecom CDR data on a per subscriber basis - data is time series based and every record is per-subscriber based - comes in round the clock - the expected volume of data would be around 300 million records/day. - this data is to be queried 24/7 by an online system where the filters are subscriber id and date range Since the volume of data is huge, we have data retention policies to archive old data on a daily basis. For example, if retention is set to 90 days, every day a offline process would delete data from Hbase which is older than 90 days and archive it on tape. The current HBase data model design is as follows: Separate table for every day's data with row key as subscriber id: reason for this is bulk delete of one days data within a big table is more expensive than dropping a one day table In this per-day-separate-table model, the load balancer will never get triggered as the current days table is always in memory, and daughter regions will continuously get assigned to same region server. This leads to a region server hotspots. Please feedback on whether the per-day-separate-table model is the best-practice for this use case considering the data life cycle management requirement. If yes, how do we solve the side effect of region server hotspot? If no, please advice alternate model. Thanks in advance Padmanaban M --f46d043bdb4ec84e1004c5bacc1e--