Skip to content

Commit

Permalink
Deprecate Balancer to maintain BWC
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <kkotwani@amazon.com>
  • Loading branch information
kotwanikunal committed Oct 13, 2022
1 parent 4474c97 commit 11e8c23
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,25 @@ public boolean containsShard(ShardRouting shard) {

}

/**
* A {@link Balancer} used by the {@link BalancedShardsAllocator} to perform allocation operations
* @deprecated As of 2.4.0, replaced by {@link LocalShardsBalancer}
*
* @opensearch.internal
*/
@Deprecated
public static class Balancer extends LocalShardsBalancer {
public Balancer(
Logger logger,
RoutingAllocation allocation,
boolean movePrimaryFirst,
BalancedShardsAllocator.WeightFunction weight,
float threshold
) {
super(logger, allocation, movePrimaryFirst, weight, threshold);
}
}

/**
* A model index.
*
Expand Down

0 comments on commit 11e8c23

Please sign in to comment.