HBase data model and data purge.
-
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 MK
-
Answer:
Think below two tips should help: 1. Prefix subscriber id with salt. 2. Pre-splitting.(Disable automatic splitting)
Jahangir Mohammed at Quora Visit the source
Related Q & A:
- What is the best data model and database systems to store social graph?Best solution by Quora
- How to create an external table for hbase?Best solution by stackoverflow.com
- How would you transfer data between your data structures and databases?Best solution by Programmers
- How do I purge my search results?Best solution by support.mysearchresults.com
- How are Hybrid Pi model and T model interchangeable?Best solution by funqa.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.