Module org.elasticsearch.server
Class DiskThresholdSettings
java.lang.Object
org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings
- All Implemented Interfaces:
Writeable
A container to keep settings for disk thresholds up to date with cluster setting changes.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Setting<ByteSizeValue>
static final Setting<RelativeByteSizeValue>
static final Setting<ByteSizeValue>
static final Setting<RelativeByteSizeValue>
static final Setting<ByteSizeValue>
static final Setting<RelativeByteSizeValue>
static final Setting<ByteSizeValue>
static final Setting<RelativeByteSizeValue>
-
Constructor Summary
ConstructorsConstructorDescriptionDiskThresholdSettings
(Settings settings, ClusterSettings clusterSettings) DiskThresholdSettings
(RelativeByteSizeValue lowStageWatermark, ByteSizeValue lowStageMaxHeadroom, RelativeByteSizeValue highStageWatermark, ByteSizeValue highStageMaxHeadroom, RelativeByteSizeValue floodStageWatermark, ByteSizeValue floodStageMaxHeadroom, RelativeByteSizeValue frozenFloodStageWatermark, ByteSizeValue frozenFloodStageMaxHeadroom) -
Method Summary
Modifier and TypeMethodDescriptiondescribeFloodStageThreshold
(ByteSizeValue total, boolean includeSettingKey) describeFrozenFloodStageThreshold
(ByteSizeValue total, boolean includeSettingKey) describeHighThreshold
(ByteSizeValue total, boolean includeSettingKey) describeLowThreshold
(ByteSizeValue total, boolean includeSettingKey) boolean
static DiskThresholdSettings
readFrom
(StreamInput in) void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Field Details
-
CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING
-
CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING
public static final Setting<RelativeByteSizeValue> CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING -
CLUSTER_ROUTING_ALLOCATION_LOW_DISK_MAX_HEADROOM_SETTING
-
CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING
public static final Setting<RelativeByteSizeValue> CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING -
CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_MAX_HEADROOM_SETTING
public static final Setting<ByteSizeValue> CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_MAX_HEADROOM_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING
public static final Setting<RelativeByteSizeValue> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_MAX_HEADROOM_SETTING
public static final Setting<ByteSizeValue> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_MAX_HEADROOM_SETTING -
CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_WATERMARK_SETTING
public static final Setting<RelativeByteSizeValue> CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_FROZEN_WATERMARK_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_REROUTE_INTERVAL_SETTING
-
-
Constructor Details
-
DiskThresholdSettings
-
DiskThresholdSettings
public DiskThresholdSettings(RelativeByteSizeValue lowStageWatermark, ByteSizeValue lowStageMaxHeadroom, RelativeByteSizeValue highStageWatermark, ByteSizeValue highStageMaxHeadroom, RelativeByteSizeValue floodStageWatermark, ByteSizeValue floodStageMaxHeadroom, RelativeByteSizeValue frozenFloodStageWatermark, ByteSizeValue frozenFloodStageMaxHeadroom)
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getFreeBytesThresholdLowStage
-
getFreeBytesThresholdHighStage
-
getFreeBytesThresholdFloodStage
-
getFreeBytesThresholdFrozenFloodStage
-
getMinimumTotalSizeForBelowLowWatermark
-
isEnabled
public boolean isEnabled() -
getRerouteInterval
-
describeLowThreshold
-
describeHighThreshold
-
describeFloodStageThreshold
-
describeFrozenFloodStageThreshold
-