mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-19 03:15:15 +00:00
parent
2dfb1d98f4
commit
acf371ef57
@ -203,8 +203,9 @@ public class BalancedShardsAllocator extends AbstractComponent implements Shards
|
||||
sum = indexBalance + shardBalance;
|
||||
if (sum <= 0.0f) {
|
||||
thetaMap.put(operation, defaultTheta);
|
||||
} else {
|
||||
thetaMap.put(operation, new float[]{shardBalance / sum, indexBalance / sum, 0});
|
||||
}
|
||||
thetaMap.put(operation, new float[]{shardBalance / sum, indexBalance / sum, 0});
|
||||
break;
|
||||
case BALANCE:
|
||||
case ALLOCATE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user