Class DiskThresholdMonitor
java.lang.Object
org.elasticsearch.cluster.routing.allocation.DiskThresholdMonitor
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
ConstructorDescriptionDiskThresholdMonitor(Settings settings, Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client, LongSupplier currentTimeMillisSupplier, RerouteService rerouteService)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNewInfo(ClusterInfo info)
protected void
updateIndicesReadOnly(Set<String> indicesToUpdate, ActionListener<Void> listener, boolean readOnly)
-
Constructor Details
-
DiskThresholdMonitor
public DiskThresholdMonitor(Settings settings, Supplier<ClusterState> clusterStateSupplier, ClusterSettings clusterSettings, Client client, LongSupplier currentTimeMillisSupplier, RerouteService rerouteService)
-
-
Method Details
-
onNewInfo
-
updateIndicesReadOnly
protected void updateIndicesReadOnly(Set<String> indicesToUpdate, ActionListener<Void> listener, boolean readOnly)
-