Class DiskThresholdMonitor
- java.lang.Object
-
- org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor
-
public class DiskThresholdMonitor extends java.lang.Object
Listens for a node to go over the high watermark and kicks off an empty reroute if it does. Also responsible for logging about nodes that have passed the disk watermarks
-
-
Constructor Summary
Constructors Constructor Description DiskThresholdMonitor(Settings settings, java.util.function.Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client)
-
Method Summary
Modifier and Type Method Description protected void
markIndicesReadOnly(java.util.Set<java.lang.String> indicesToMarkReadOnly)
void
onNewInfo(ClusterInfo info)
protected void
reroute()
-
-
-
Constructor Detail
-
DiskThresholdMonitor
public DiskThresholdMonitor(Settings settings, java.util.function.Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client)
-
-
Method Detail
-
onNewInfo
public void onNewInfo(ClusterInfo info)
-
markIndicesReadOnly
protected void markIndicesReadOnly(java.util.Set<java.lang.String> indicesToMarkReadOnly)
-
reroute
protected void reroute()
-
-