@@ -55,9 +55,6 @@ public class DiskThresholdSettings {
55
55
(s ) -> validWatermarkSetting (s , "cluster.routing.allocation.disk.watermark.flood_stage" ),
56
56
new FloodStageValidator (),
57
57
Setting .Property .Dynamic , Setting .Property .NodeScope );
58
- public static final Setting <Boolean > CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING =
59
- Setting .boolSetting ("cluster.routing.allocation.disk.include_relocations" , true ,
60
- Setting .Property .Dynamic , Setting .Property .NodeScope , Setting .Property .Deprecated );
61
58
public static final Setting <TimeValue > CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING =
62
59
Setting .positiveTimeSetting ("cluster.routing.allocation.disk.reroute_interval" , TimeValue .timeValueSeconds (60 ),
63
60
Setting .Property .Dynamic , Setting .Property .NodeScope );
@@ -68,7 +65,6 @@ public class DiskThresholdSettings {
68
65
private volatile Double freeDiskThresholdHigh ;
69
66
private volatile ByteSizeValue freeBytesThresholdLow ;
70
67
private volatile ByteSizeValue freeBytesThresholdHigh ;
71
- private volatile boolean includeRelocations ;
72
68
private volatile boolean enabled ;
73
69
private volatile TimeValue rerouteInterval ;
74
70
private volatile Double freeDiskThresholdFloodStage ;
@@ -90,13 +86,11 @@ public DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings)
90
86
setHighWatermark (highWatermark );
91
87
setLowWatermark (lowWatermark );
92
88
setFloodStage (floodStage );
93
- this .includeRelocations = CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING .get (settings );
94
89
this .rerouteInterval = CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING .get (settings );
95
90
this .enabled = CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING .get (settings );
96
91
clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING , this ::setLowWatermark );
97
92
clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING , this ::setHighWatermark );
98
93
clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING , this ::setFloodStage );
99
- clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING , this ::setIncludeRelocations );
100
94
clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING , this ::setRerouteInterval );
101
95
clusterSettings .addSettingsUpdateConsumer (CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING , this ::setEnabled );
102
96
}
@@ -227,10 +221,6 @@ private static void doValidateAsBytes(final String low, final String high, final
227
221
}
228
222
}
229
223
230
- private void setIncludeRelocations (boolean includeRelocations ) {
231
- this .includeRelocations = includeRelocations ;
232
- }
233
-
234
224
private void setRerouteInterval (TimeValue rerouteInterval ) {
235
225
this .rerouteInterval = rerouteInterval ;
236
226
}
@@ -300,10 +290,6 @@ public ByteSizeValue getFreeBytesThresholdFloodStage() {
300
290
return freeBytesThresholdFloodStage ;
301
291
}
302
292
303
- public boolean includeRelocations () {
304
- return includeRelocations ;
305
- }
306
-
307
293
public boolean isEnabled () {
308
294
return enabled ;
309
295
}
0 commit comments