Designing OpenSearch Cluster Monitoring and Incident Response
Creating many monitors in OpenSearch Alerting does not make root causes quicker to find. A yellow cluster can mean missing replicas, while red can mean lost primary shards. Node disk utilization is not an immediate outage, but crossing allocation watermarks can block new shard placement and recovery. An Alert must narrow an operator’s next action, not merely copy a status.
This article connects the Cluster → Node → Index → Shard observation hierarchy to Alert lifecycle and incident response. Designing Integration Alerting and Metrics covers business Events and Interface Errors; this article covers availability and capacity of the search cluster itself.
A monitor connects state to action
Section titled “A monitor connects state to action”A monitor must be a versioned object with input, condition, duration, severity, grouping key, and notification policy. Sending the same message every time a threshold is crossed lets transient spikes and planned rolling updates overwhelm on-call staff. Alert history must separately represent whether the signal persists, shares a root cause, or is already acknowledged.
Cluster health means more than color
Section titled “Cluster health means more than color”_cluster/health is a quick starting point, but color alone must not determine incident severity.
| State | General meaning | First check | Default response |
|---|---|---|---|
| Green | All primaries and replicas assigned | Baseline metric | Observe |
| Yellow | Primaries assigned, some replicas unassigned | Replica count, node count, planned maintenance | Time-bound warning or maintenance suppression |
| Red | One or more primaries unassigned | Affected indexes, data availability, recent node loss | Immediate page and allocation investigation |
Even in yellow, another failure of the primary node without a replica can turn data availability red. Conversely, a brief yellow after a rolling upgrade can be automatic recovery. Do not page on status != green alone. Evaluate status, duration, affected primaries, maintenance window, and index criticality together.
{ "monitor": "cluster-health", "input": { "path": "_cluster/health" }, "trigger": { "warning": "status == 'yellow' for 10m outside maintenance", "critical": "status == 'red' or unassigned_primary > 0" }, "group_by": ["cluster", "status"], "dedup_window": "15m"}This describes policy shape. Verify concrete monitor syntax and metric fields against the OpenSearch Alerting version in use. A production incident message needs only actionable context such as cluster name, status, first-observed time, affected-index count, and runbook link; it must not contain customer payloads or credentials.
Watch node pressure before allocation fails
Section titled “Watch node pressure before allocation fails”_nodes/stats and _cat/allocation are baseline sources for CPU, JVM heap, filesystem, and shard-skew observation. Thresholds come from workload and node-class baselines, not universal product constants.
| Signal | Why observe it | Alert design |
|---|---|---|
| Disk used / watermark | Allocation, merge, and relocation headroom | Check growth rate and free bytes together |
| JVM heap | Early sign of GC pressure and query/indexing failure | Combine sustained usage and GC time |
| CPU | Ingest/query saturation | Interpret with queues and rejected requests |
| Thread-pool rejection | Requests are already rejected | Group as an immediate impact signal |
| Shard count per node | Skew and recovery blast radius | Use as capacity-planning signal |
Making 75% disk usage universally critical treats a large-disk node and a small-disk node as the same risk. Use percentage, absolute free space, growth trend, and high/flood-stage watermarks together. If writes continue while disk is high, shard relocation itself can consume more disk and network and worsen the condition, so a runbook needs retention/rollover and ingest-throttling options.
For JVM heap, sustained duration, old-generation pressure, GC pause, and rejected requests matter more than one sample. Restarting blindly because heap is high can worsen an incident with shard recovery and cache warm-up. First distinguish query surges, aggregation cardinality, shard imbalance, and potential memory leaks.
The same metric means different things per node pool. Reading only a cluster average hides saturation on one side behind headroom on another.
| Node pool | Resource that saturates first | What the signal actually means |
|---|---|---|
| Hot data | Disk write, merge I/O, heap | Ingest rate exceeded rollover and merge headroom |
| Cold data | Disk capacity, relocation network | Retention window or transition rate does not match tier capacity |
| Cluster-manager | Heap, cluster-state update latency | Shard/index count is high or pending tasks accumulated |
| Ingest/coordinating | CPU, thread-pool rejection | Bulk intake or search fan-out exceeded tier capacity |
The table is only usable if Alerts carry a node-pool label. A single disk > 80% message cannot distinguish a case needing ingest throttling from one needing more Cold-tier capacity.
Indexes and shards are data-availability boundaries
Section titled “Indexes and shards are data-availability boundaries”_cat/indices, _cat/shards, and _cluster/allocation/explain narrow why an index cannot allocate. UNASSIGNED is a state, not one root cause.

| Symptom | Possible cause | First diagnosis |
|---|---|---|
| Unassigned replica | Too few nodes, allocation filter, disk watermark | Allocation explanation, node tier |
| Unassigned primary | Node loss, corrupt shard, restore required | Affected index, last snapshot, recovery log |
| Long-running relocating shard | Disk/network pressure, throttling, large shard | Relocation bytes, target disk, recovery rate |
| Red index | Primary unavailable | Write/read impact and restore path |
| Write failure after rollover | Template/policy/allocation mismatch | Write index and ISM explain |
A replica promotion does not mean recovery is complete. Fault tolerance remains lower until a new replica is built. An Alert must not stop at unassigned shard exists; include primary/replica distinction, index criticality, and allocation reason. Conversely, if hundreds of replicas are briefly unassigned by one node drain, group them into one incident rather than sending one notification per shard.
Separate Alert lifecycle from notification
Section titled “Separate Alert lifecycle from notification”Do not put Alert creation and channel delivery in one transaction. Alert history can be stored while a webhook fails, and monitor evaluation must continue while delivery retries.
| State | Meaning | Operating action |
|---|---|---|
| OPEN | Condition newly met | Start notification and triage |
| ACKNOWLEDGED | Owner confirmed | Suppress duplicate page, continue investigation |
| SUPPRESSED | Maintenance or known issue | Keep history, suppress page |
| RESOLVED | Recovery condition met | Send recovery notification and retain evidence |
| ESCALATED | SLO or duration exceeded | Call a higher on-call tier |
Choose a grouping key close to the root cause. (cluster, status) can fit a cluster-health Alert, while a node-disk Alert may need (cluster, node). Include a time window in a dedup key so the same condition does not create a new history row every evaluation. Do not hard-code internal service hosts, static tokens, or vendor endpoints in monitor configuration; use secret references and a separate notification adapter to isolate rotation, audit, and retry.
Dev Tools both diagnoses and changes
Section titled “Dev Tools both diagnoses and changes”Separate read-only inspection from destructive changes in Dev Tools.
GET _cluster/healthGET _cat/allocation?vGET _cat/shards?v&s=stateGET _nodes/stats/fs,jvm,processGET _cluster/allocation/explainThese commands are the start of symptom inspection. Do not make DELETE _data_stream/..., system-index deletion, forced allocation, or policy-state changes the “first command” in a runbook without incident-commander approval and backup verification. Excess Alert history signals a need to examine retention, notification loops, and monitor conditions before deleting a history index.
Incident response sequence
Section titled “Incident response sequence”- Confirm whether the Alert persists outside maintenance suppression and whether grouping identifies the same root cause.
- Inspect primary availability and affected-index scope through cluster health.
- Narrow the cause with node disk, heap, CPU, network, recent rollout, and allocation explanation.
- Choose the least-impacting action among write throttling, replica recovery, capacity extension, and snapshot restore.
- After recovery, inspect not only Green status but replica rebuild, ISM progress, ingest backlog, and search error rate.
- Record timeline, chosen action, data-loss status, and follow-up capacity or rule improvement in incident history.
Verification sequence
Section titled “Verification sequence”- Intentionally unassign a replica in a test cluster and confirm expected warning/critical grouping.
- Inject synthetic disk growth and node pressure, then confirm duration, throttle, and escalation behavior.
- Run a planned rolling restart inside a maintenance window and confirm suppression keeps history while preventing a page.
- Temporarily stop the notification adapter and confirm Alert history and delivery retry are recorded independently.
- After a restore drill, verify cluster health, shard allocation, Data Stream writes, and query latency return to baseline.
Summary
Section titled “Summary”OpenSearch monitoring is not sending green/yellow/red by email. Cluster health expresses availability, node pressure expresses capacity, indexes and shards express data placement, and Alert lifecycle expresses the boundary for human response. Designing these signals with duration, grouping, suppression, and runbooks separates planned-change noise from real primary loss and turns basic alarms into repeatable incident response.
This article connects the capacity signals in Designing OpenSearch Hot/Cold Storage and Index Lifecycles on Kubernetes, the identity boundaries in Configuring OpenSearch TLS and Least-Privilege RBAC on Kubernetes, and the application signals in Designing Integration Alerting and Metrics into one operating flow.