[
https://issues.apache.org/jira/browse/HBASE-29168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wellington Chevreuil resolved HBASE-29168.
------------------------------------------
Release Note:
This introduces region moving throttling for LoadBalancer implementations. The
throttling time is configurable by the
"hbase.master.balancer.move.throttlingMillis" property and default value is
60000 millis.
In this change, the only balancer implementation applying throttling is the
CacheAwareLoadBalancer. All other balancers just inherit the noop default
provided within the LoadBalancer interface.
The CacheAwareLoadBalancer throttling implementation performs throttling only
for regions moving to target server with region cached ratio below the
threshold configurable by
"hbase.master.balancer.stochastic.throttling.cacheRatio" (80% by default).
Resolution: Fixed
Merged into master, branch-3, branch-2 and branch-2.6. Thanks for the review,
[~swu] !
> Add configurable throttling of region moves in CacheAwareLoadBalancer.
> ----------------------------------------------------------------------
>
> Key: HBASE-29168
> URL: https://issues.apache.org/jira/browse/HBASE-29168
> Project: HBase
> Issue Type: Improvement
> Affects Versions: 3.0.0-beta-1, 4.0.0-alpha-1, 2.7.0
> Reporter: Wellington Chevreuil
> Assignee: Wellington Chevreuil
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.0.0, 4.0.0-alpha-1, 2.7.0, 2.6.3
>
>
> On use cases where cache hits are critical, such as when using cloud storage,
> it might be preferable to slow down the execution of region moves from a
> balancer plan, if the target RegionServer has low cache ratio for the given
> region.
> This implements a region move throttling logic in the CacheAwareLoadBalancer,
> where if the cache ratio for the region in target RegionServer from the
> region plan is below a configurable threshold, it sleeps the moving thread
> for a configurable time in milliseconds.
> This also overrides balanceCluster method in CacheAwareLoadBalancer, so that
> it sorts the generated region plan by descending order of cache ratio in the
> target server, so that regions with cache ratio above the configured
> threshold can be move first without any throttling.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)