Technologies/Elasticsearch/elasticsearch.cluster.pending_tasks
ElasticsearchElasticsearchMetric

elasticsearch.cluster.pending_tasks

Pending cluster tasks
Dimensions:None
Available on:PrometheusPrometheus (2)OpenTelemetryOpenTelemetry (1)DatadogDatadog (4)DynatraceDynatrace (1)

Summary

Shows the number of pending cluster management tasks waiting for master node processing. Tasks include shard allocation, index creation, and mapping updates. A growing pending tasks count indicates master node overload, which delays critical operations. The unassigned shard insight notes that pending task backlogs can prevent recovery and perpetuate red cluster status.

Interface Metrics (8)
PrometheusPrometheus
Tasks max time waiting in queue.
Dimensions:None
OpenTelemetryOpenTelemetry
The number of cluster-level changes that have not yet been executed.
Dimensions:None
DatadogDatadog
The total number of pending tasks.
Dimensions:None
PrometheusPrometheus
Cluster level changes which have not yet been executed
Dimensions:None
DynatraceDynatrace
Number of pending Tasks
Dimensions:None
DatadogDatadog
The number of high priority pending tasks.
Dimensions:None
DatadogDatadog
The number of urgent priority pending tasks.
Dimensions:None
DatadogDatadog
The average time spent by tasks in the queue.
Dimensions:None
Related Insights (4)
JVM Heap Pressure Cascading Failurecritical

When JVM heap usage stays above 85% for extended periods, garbage collection pauses increase dramatically, leading to node unresponsiveness, cluster state propagation failures, and potential split-brain scenarios.

Mapping Explosion Cluster State Bloatcritical

Using high-cardinality data (like user IDs or timestamps) as JSON keys causes unbounded field creation in index mappings, bloating cluster state to hundreds of megabytes and causing master node instability and broadcast delays.

Cluster State Update Delayswarning

Slow cluster state updates cause delays in shard allocation, index creation, and mapping updates. Large cluster state size or master node resource constraints are common causes.

Task Management Queue Buildupwarning

Long-running or stuck tasks accumulate in the task manager, potentially blocking critical operations and consuming resources.