Skip to content

Commit b9403bb

Browse files
committed
Javadoc on NodeSorter
1 parent 3361bbe commit b9403bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,14 @@ public boolean containsShard(ShardRouting shard) {
12891289
}
12901290
}
12911291

1292+
/**
1293+
* A NodeSorter sorts the set of nodes for a single partition using the {@link WeightFunction}
1294+
* for that partition. In partitioned cluster topologies there will be one for each partition
1295+
* (e.g. search/indexing in stateless). By default, there is a single partition containing
1296+
* a single weight function that applies to all nodes and shards.
1297+
*
1298+
* @see BalancingWeightsFactory
1299+
*/
12921300
public static final class NodeSorter extends IntroSorter {
12931301

12941302
final ModelNode[] modelNodes;

0 commit comments

Comments
 (0)