Class DiskThresholdSettings
java.lang.Object
org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings
public class DiskThresholdSettings
extends java.lang.Object
A container to keep settings for disk thresholds up to date with cluster setting changes.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUTO_RELEASE_INDEX_ENABLED_KEY
static Setting<ByteSizeValue>
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_MAX_HEADROOM_SETTING
static Setting<RelativeByteSizeValue>
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_SETTING
static Setting<java.lang.String>
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING
static Setting<java.lang.Boolean>
CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING
static Setting<java.lang.String>
CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING
static Setting<java.lang.Boolean>
CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING
static Setting<java.lang.String>
CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING
static Setting<org.elasticsearch.common.unit.TimeValue>
CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING
-
Constructor Summary
Constructors Constructor Description DiskThresholdSettings(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
Modifier and Type Method Description ByteSizeValue
getFreeBytesThresholdFloodStage()
ByteSizeValue
getFreeBytesThresholdFrozenFloodStage(ByteSizeValue total)
ByteSizeValue
getFreeBytesThresholdHigh()
ByteSizeValue
getFreeBytesThresholdLow()
java.lang.Double
getFreeDiskThresholdFloodStage()
java.lang.Double
getFreeDiskThresholdHigh()
java.lang.Double
getFreeDiskThresholdLow()
java.lang.String
getHighWatermarkRaw()
Gets the raw (uninterpreted) high watermark value as found in the settings.java.lang.String
getLowWatermarkRaw()
Gets the raw (uninterpreted) low watermark value as found in the settings.org.elasticsearch.common.unit.TimeValue
getRerouteInterval()
boolean
includeRelocations()
boolean
isAutoReleaseIndexEnabled()
boolean
isEnabled()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING
public static final Setting<java.lang.Boolean> CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING -
CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING
-
CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING
public static final Setting<java.lang.String> CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING
public static final Setting<java.lang.String> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_SETTING
public static final Setting<RelativeByteSizeValue> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_MAX_HEADROOM_SETTING
public static final Setting<ByteSizeValue> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_MAX_HEADROOM_SETTING -
CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING
public static final Setting<java.lang.Boolean> CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING -
CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING
public static final Setting<org.elasticsearch.common.unit.TimeValue> CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING -
AUTO_RELEASE_INDEX_ENABLED_KEY
public static final java.lang.String AUTO_RELEASE_INDEX_ENABLED_KEY- See Also:
- Constant Field Values
-
-
Constructor Details
-
DiskThresholdSettings
-
-
Method Details
-
getLowWatermarkRaw
public java.lang.String getLowWatermarkRaw()Gets the raw (uninterpreted) low watermark value as found in the settings. -
getHighWatermarkRaw
public java.lang.String getHighWatermarkRaw()Gets the raw (uninterpreted) high watermark value as found in the settings. -
getFreeDiskThresholdLow
public java.lang.Double getFreeDiskThresholdLow() -
getFreeDiskThresholdHigh
public java.lang.Double getFreeDiskThresholdHigh() -
getFreeBytesThresholdLow
-
getFreeBytesThresholdHigh
-
getFreeDiskThresholdFloodStage
public java.lang.Double getFreeDiskThresholdFloodStage() -
getFreeBytesThresholdFloodStage
-
getFreeBytesThresholdFrozenFloodStage
-
isAutoReleaseIndexEnabled
public boolean isAutoReleaseIndexEnabled() -
includeRelocations
public boolean includeRelocations() -
isEnabled
public boolean isEnabled() -
getRerouteInterval
public org.elasticsearch.common.unit.TimeValue getRerouteInterval()
-