You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/11/11 02:02:00 UTC

[jira] [Resolved] (HBASE-26308) Sum of multiplier of cost functions is not populated properly when we have a shortcut for trigger

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

Duo Zhang resolved HBASE-26308.
-------------------------------
    Fix Version/s: 2.5.0
                   3.0.0-alpha-2
                   2.4.9
     Hadoop Flags: Reviewed
       Resolution: Fixed

> Sum of multiplier of cost functions is not populated properly when we have a shortcut for trigger
> -------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-26308
>                 URL: https://issues.apache.org/jira/browse/HBASE-26308
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Balancer
>            Reporter: Clara Xiong
>            Assignee: Clara Xiong
>            Priority: Critical
>             Fix For: 2.5.0, 3.0.0-alpha-2, 2.4.9
>
>
> We have a couple of scenarios that we force balancing:
>  * idle servers
>  * co-hosted regions
> The code path quit before populating the sum of multiplier of cost functions. This causes wrong value reported in logging. As below, the weighted average is not divide by total weight. This causes inconsistent log among iterations.
> {quote}2021-09-24 21:46:57,881 INFO org.apache.hadoop.hbase.master.balancer.S*tocha*sticLoadBalancer: Running balancer because at least one server hosts replicas of the same region.
> 2021-09-24 21:46:57,881 INFO org.apache.hadoop.hbase.master.balancer.S*tocha*sticLoadBalancer: Start S*tocha*sticLoadBalancer.balancer, initial weighted average imbalance=6389.260497305375, functionCost=RegionCountSkewCostFunction : (multiplier=500.0, imbalance=0.06659036267913739); PrimaryRegionCountSkewCostFunction : (multiplier=500.0, imbalance=0.05296760285663541); MoveCostFunction : (multiplier=7.0, imbalance=0.0, balanced); ServerLocalityCostFunction : (multiplier=25.0, imbalance=0.46286750487559114); RackLocalityCostFunction : (multiplier=15.0, imbalance=0.2569525347374165); TableSkewCostFunction : (multiplier=500.0, imbalance=0.3760689783169534); RegionReplicaHostCostFunction : (multiplier=100000.0, imbalance=0.0553889913899139); RegionReplicaRackCostFunction : (multiplier=10000.0, imbalance=0.05854089790897909); ReadRequestCostFunction : (multiplier=5.0, imbalance=0.06969346106898068); WriteRequestCostFunction : (multiplier=5.0, imbalance=0.07834116112410174); MemStoreSizeCostFunction : (multiplier=5.0, imbalance=0.12533769793201735); StoreFileCostFunction : (multiplier=5.0, imbalance=0.06921401085082914);  computedMaxSteps=5577401600
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)