Skip to content

Commit f1a1e9f

Browse files
authored
Set Remote Capable Shard Per Node Field in Constructor (#19672)
Signed-off-by: Gagan Singh Saini <gagasa@amazon.com>
1 parent 0c89456 commit f1a1e9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/opensearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public ShardsLimitAllocationDecider(Settings settings, ClusterSettings clusterSe
166166
this.settings = settings;
167167
this.clusterShardLimit = CLUSTER_TOTAL_SHARDS_PER_NODE_SETTING.get(settings);
168168
this.clusterPrimaryShardLimit = CLUSTER_TOTAL_PRIMARY_SHARDS_PER_NODE_SETTING.get(settings);
169+
this.clusterRemoteCapableShardLimit = CLUSTER_TOTAL_REMOTE_CAPABLE_SHARDS_PER_NODE_SETTING.get(settings);
169170
clusterSettings.addSettingsUpdateConsumer(CLUSTER_TOTAL_SHARDS_PER_NODE_SETTING, this::setClusterShardLimit);
170171
clusterSettings.addSettingsUpdateConsumer(CLUSTER_TOTAL_PRIMARY_SHARDS_PER_NODE_SETTING, this::setClusterPrimaryShardLimit);
171172
clusterSettings.addSettingsUpdateConsumer(

0 commit comments

Comments
 (0)