[ 
https://issues.apache.org/jira/browse/HBASE-27389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rahul Agarkar updated HBASE-27389:
----------------------------------
    Description: 
HBase currently uses StochasticLoadBalancer to determine the cost of moving the 
regions from one RS to another. Each cost functions give a result between 0 and 
1, with 0 being the lowest cost and 1 being the cost. The balancer iterates 
through each cost function and comes up with the total cost. Now, the balancer 
will create multiple balancing plans on random actions and try to compute the 
cost of each plan as if they are executed, if the cost of the plan is less than 
the initial cost, the plan is executed.

Implement a new "CacheAwareCostFunction" which takes into account if the region 
is fully cached and return the highest cost if the plan suggests moving this 
region.

  was:
HBase currently uses StochasticLoadBalancer to determine the cost of moving the 
regions from one RS to another. Each cost functions give a result between 0 and 
1, with 0 being the lowest cost and 1 being the cost. The balancer iterates 
through each cost function and comes up with the total cost. Now, the balancer 
will create multiple balancing plans on random actions and try to compute the 
cost of each plan as if they are executed, if the cost of the plan is less than 
the initial cost, the plan is executed.

Implement a new "PrefetchCacheCostFunction" which takes into account if the 
region is fully cached and return the highest cost if the plan suggests moving 
this region.


> Add cost function in balancer to consider the cost of building bucket cache 
> before moving regions
> -------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-27389
>                 URL: https://issues.apache.org/jira/browse/HBASE-27389
>             Project: HBase
>          Issue Type: Task
>          Components: Balancer
>            Reporter: Rahul Agarkar
>            Assignee: Rahul Agarkar
>            Priority: Major
>
> HBase currently uses StochasticLoadBalancer to determine the cost of moving 
> the regions from one RS to another. Each cost functions give a result between 
> 0 and 1, with 0 being the lowest cost and 1 being the cost. The balancer 
> iterates through each cost function and comes up with the total cost. Now, 
> the balancer will create multiple balancing plans on random actions and try 
> to compute the cost of each plan as if they are executed, if the cost of the 
> plan is less than the initial cost, the plan is executed.
> Implement a new "CacheAwareCostFunction" which takes into account if the 
> region is fully cached and return the highest cost if the plan suggests 
> moving this region.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to