mirror of https://github.com/apache/druid.git
Include loadqueuepeon size to compute disknormalized cost (#3826)
This commit is contained in:
parent
dddeae813a
commit
2aa8385fc0
|
@ -51,7 +51,7 @@ public class DiskNormalizedCostBalancerStrategy extends CostBalancerStrategy
|
|||
}
|
||||
|
||||
double normalizedCost = cost/nSegments;
|
||||
double usageRatio = (double)server.getServer().getCurrSize()/(double)server.getServer().getMaxSize();
|
||||
double usageRatio = (double) server.getSizeUsed() / (double) server.getServer().getMaxSize();
|
||||
|
||||
return normalizedCost*usageRatio;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue