Thanks for response.
I tuned the values of dfs.block.size and hbase.hregion.max.filesize for my
tests (pure read tests) and had below results:
Test dfs.block.size hbase.hregion.max.filesize
requests/sec latency
1 32 1024
~4000 24
2 256 256
~4500 22
3 1024 1024
~5000 20
My understanding to the results is that, with less hdfs blocks hfile can
speed up the lookup for a random row, avoiding jumping from one block to
another (Test 1 vs. Test2); with less but bigger regions performance will
also be better? (Test2 vs. Test3).
Sure, I believe number of HFiles per region will have impact, but I truly
all did major compaction using the command line:
major_compact 'mytable'
and checked each region has only one storefile.
Is that correct?
2011/1/18 Tatsuya Kawano <[email protected]>
> Hi Tao,
>
> I think the number of regions won't have much impact to random read
> throughput and latency. But the number of generations (HFiles) per region
> will do.
>
> If this is the case, try to run major compaction on the table. This will
> merge HFile generations so the read throughput and latency will be
> recovered. You can do this from the hbase shell.
>
> Also, you might want to increase hbase.region.mstore.flush.size to keep
> the number of HFile generations smaller.
>
> Thanks,
>
> --
> Tatsuya Kawano (Mr.)
> Tokyo, Japan
>
>
> On Jan 18, 2011, at 11:20 AM, Tao Xie <[email protected]> wrote:
>
> > For example, I have total some data and I can tune
> > hbase.hregion.max.filesize to increase/decrease total region number,
> rite?
> > I want to know if the region number has performance impact to random read
> > tests. I observed that in my ycsb test, with larger hfile size, I got
> > better tput and smaller latency.
> > Anybody can give me hints. Thanks.
> >
> > Tao
>
>