|
@@ -19,8 +19,6 @@
|
|
|
|
|
|
package org.elasticsearch.cluster.routing.allocation.decider;
|
|
|
|
|
|
-import java.util.Set;
|
|
|
-
|
|
|
import com.carrotsearch.hppc.cursors.ObjectCursor;
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
import org.apache.logging.log4j.Logger;
|
|
@@ -44,6 +42,8 @@ import org.elasticsearch.common.unit.ByteSizeValue;
|
|
|
import org.elasticsearch.index.Index;
|
|
|
import org.elasticsearch.index.shard.ShardId;
|
|
|
|
|
|
+import java.util.Set;
|
|
|
+
|
|
|
import static org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING;
|
|
|
import static org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING;
|
|
|
|
|
@@ -68,7 +68,7 @@ import static org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings
|
|
|
* exact byte values for free space (like "500mb")
|
|
|
*
|
|
|
* <code>cluster.routing.allocation.disk.threshold_enabled</code> is used to
|
|
|
- * enable or disable this decider. It defaults to false (disabled).
|
|
|
+ * enable or disable this decider. It defaults to true (enabled).
|
|
|
*/
|
|
|
public class DiskThresholdDecider extends AllocationDecider {
|
|
|
|