incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

backend为hbase时,有分区吗

Open minilop opened this issue 7 years ago • 2 comments

backend为hbase,load vertex时,发现对hbase的write操作全部集中在一个region上,导致经常报RegionTooBusyException,而经常retry。

minilop avatar Apr 19 '19 03:04 minilop

@minilop hugegraph使用的是hbase的默认分区策略。

请参考下面的方法(https://community.hortonworks.com/questions/37196/im-getting-regiontoobusyexception-when-trying-to-i.html):

Two major reasons for RegionTooBusyException

Failure to acquire region lock (look for " failed to get a lock in " in map task log) Region memstore is above limit and flushes can not keep up with load (look for "Above memstore limit")

To mitigate 1. you can increase maximum busy wait timeout hbase.ipc.client.call.purge.timeout in ms (default is 120000) directly but do not forget to increase hbase.rpc.timeout accordingly (set it to the same value)

To mitigate 2. you can increase hbase.hregion.memstore.block.multiplier from default(4) to some higher value.

也可以根据数据的分布特点对 hbase 做更加均衡的预分区。

javeme avatar Apr 19 '19 15:04 javeme

Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label

github-actions[bot] avatar Jan 01 '22 21:01 github-actions[bot]