[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AAEMWDQMABGBDR32N0GZFD":3,"skill-same:01M7AAEMWDQMABGBDR32N0GZFD":149},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7AAEMWDQMABGBDR32N0GZFD","opensearch-cluster-troubleshooter",null,"Diagnoses Amazon OpenSearch Service cluster incidents across eleven failure categories: ClusterBlockException from disk watermark breach (85% flood-stage read-only block, 90% \u002F 95% allocation freeze), JVM heap pressure above 75% triggering old-gen GC storms and OutOfMemoryError, thread-pool rejections on the search and write queues, shard allocation failures and unassigned shards, cluster yellow \u002F red status, split-brain from lost quorum, slow-log analysis for heavy queries and mapping explosion (too many fields), circuit breaker errors (parent, fielddata, request), index deletion during snapshot, cold-node to hot-node migration failures, and version upgrade rollback scenarios. Walks symptoms to a verified root cause with evidence-backed probes and emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: opensearch-cluster-troubleshooter\ndescription: 'Diagnoses Amazon OpenSearch Service cluster incidents across eleven failure categories: ClusterBlockException from disk watermark breach (85% flood-stage read-only block, 90% \u002F 95% allocation freeze), JVM heap pressure above 75% triggering old-gen GC storms and OutOfMemoryError, thread-pool rejections on the search and write queues, shard allocation failures and unassigned shards, cluster yellow \u002F red status, split-brain from lost quorum, slow-log analysis for heavy queries and mapping explosion (too many fields), circuit breaker errors (parent, fielddata, request), index deletion during snapshot, cold-node to hot-node migration failures, and version upgrade rollback scenarios. Walks symptoms to a verified root cause with evidence-backed probes and emits ROOT_CAUSE_IDENTIFIED or INSUFFICIENT_DATA.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and cluster health output. Live-account diagnosis uses aws opensearch describe-domain, describe-domain-config, list-domain-names, aws es describe-elasticsearch-domain (legacy), aws cloudwatch get-metric-statistics on the AWS\u002FES namespace, aws s3 ls for snapshot repositories, the _cluster\u002Fhealth, _cat\u002Fshards, _cat\u002Fallocation, _cat\u002Fthread_pool...\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Analytics\n  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\n  when_to_use: Diagnosing an Amazon OpenSearch Service cluster incident — ClusterBlockException (read-only block, write block), cluster status red or yellow, JVM heap pressure alarms, search or write thread-pool rejections, unassigned shards, shard allocation failures, circuit breaker trips (parent \u002F fielddata \u002F request), slow-query investigations, mapping explosion (too many fields), index deletion blocked by an in-progress snapshot, cold-to-hot storage migration failures, an in-place upgrade rollback, or a split-brain event. Use whenever the symptom is cluster-wide (not a single index mapping question) and the operator needs the failing subsystem named with positive evidence.\n  when_not_to_use: Index mapping design or analyzer tuning (use the OpenSearch _mapping API and the index mapping reference), application-side query authoring (use the search DSL and slow logs), OpenSearch Serverless collection incidents (use a Serverless-specific skill — this skill targets managed OpenSearch Service domains only), VPC endpoint posture audits for the OpenSearch domain (use ec2-security-group-auditor), or IAM fine-grained-access-control user\u002Frole provisioning (use iam-least-privilege-advisor). This skill diagnoses cluster-health incidents; it does not design mappings or audit steady-state access posture.\n  activation_triggers: OpenSearch ClusterBlockException, OpenSearch cluster red, OpenSearch cluster yellow, OpenSearch disk watermark, OpenSearch flood stage disk.watermark.flood, OpenSearch JVM heap pressure, OpenSearch OutOfMemoryError, OpenSearch old gen GC, OpenSearch thread pool rejected, OpenSearch search queue rejected, OpenSearch write queue rejected, OpenSearch unassigned shards, OpenSearch shard allocation failed, OpenSearch circuit breaker, OpenSearch parent breaker tripped, OpenSearch fielddata circuit breaker, OpenSearch mapping explosion, OpenSearch too many fields, OpenSearch slow query, OpenSearch slow log, OpenSearch index delete during snapshot, OpenSearch snapshot in progress, OpenSearch UltraWarm migration failed, OpenSearch cold node to hot node, OpenSearch upgrade rollback, OpenSearch split-brain, troubleshoot OpenSearch cluster\n  invocation_schema: 'Input: either (a) a symptom description (error message from a client, observed cluster status, an alarm name), optionally paired with the _cluster\u002Fhealth output, _cat\u002Fshards output, and recent CloudWatch metrics, OR (b) a DomainName plus caller context (region, observed error) for live-account diagnosis. Output: a deterministic TARGET \u002F VERDICT \u002F ROOT_CAUSE \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {DISK_WATERMARK_FLOOD, DISK_WATERMARK_HIGH, JVM_HEAP_PRESSURE, JVM_OOM, THREAD_POOL_SEARCH, THREAD_POOL_WRITE, SHARD_ALLOCATION, CLUSTER_YELLOW, CLUSTER_RED, SPLIT_BRAIN, SLOW_QUERY, MAPPING_EXPLOSION, CIRCUIT_BREAKER_PARENT, CIRCUIT_BREAKER_FIELDDATA, CIRCUIT_BREAKER_REQUEST, SNAPSHOT_BLOCKING_DELETE, COLD_HOT_MIGRATION, UPGRADE_ROLLBACK, UNKNOWN}.'\n  invocation_example: '# Minimal valid input (offline symptom classification):\n\n    Symptom: \"OpenSearch domain prod-logs-cluster returns\n\n    ClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete\n\n    admin api];\" the cluster status is yellow and writes are failing.\n\n    DomainName: prod-logs-cluster\n\n    EngineVersion: OpenSearch_2.13\n\n    ClusterStatus: yellow\n\n    HotDataNodes: 3 (r6g.large.search)\n\n    MasterNodes: 3\n\n    EBSVolumeSize: 100 GB per node\n\n    LastCloudWatchAlarm: ClusterIndexWritesBlocked > 0 for 12 minutes'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: OpenSearch, Elasticsearch, ClusterBlockException, disk watermark, flood stage, JVM heap pressure, old gen GC, OutOfMemoryError, thread pool rejection, search queue, write queue, unassigned shards, cluster red, cluster yellow, split-brain, slow log, mapping explosion, circuit breaker, parent circuit breaker, fielddata circuit breaker, index deletion during snapshot, cold node, hot node, UltraWarm, migration failure, upgrade rollback, troubleshooting\n  tags: opensearch, analytics, troubleshooting, cluster-health, disk-watermark, jvm-heap, thread-pool, shard-allocation, circuit-breaker\n---\n\n# OpenSearch Cluster Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (the first plausible match drives the first\n  probe):** `ClusterBlockException: index read-only \u002F delete admin api`\n  → DISK_WATERMARK_FLOOD (85% flood stage); `cluster status: red` →\n  CLUSTER_RED \u002F SHARD_ALLOCATION \u002F SPLIT_BRAIN; `cluster status: yellow`\n  → CLUSTER_YELLOW \u002F SHARD_ALLOCATION; `JVMHeapPressure > 75%` alarm →\n  JVM_HEAP_PRESSURE; `OutOfMemoryError: Java heap space` → JVM_OOM;\n  `thread_pool [search] rejected execution` → THREAD_POOL_SEARCH;\n  `thread_pool [write] rejected execution` → THREAD_POOL_WRITE;\n  `circuit_breaking_exception` with `parent breaker` →\n  CIRCUIT_BREAKER_PARENT; unassigned shards in `_cat\u002Fshards` →\n  SHARD_ALLOCATION; `SnapshotInProgressException` on delete →\n  SNAPSHOT_BLOCKING_DELETE.\n- **Always verify with a probe, never guess.** Each layer has a single\n  command that proves or disproves it. A ROOT_CAUSE_IDENTIFIED verdict\n  requires positive evidence — a failing probe that matches the\n  symptom — not a process of elimination that \"must be the disk.\"\n- **The three numbers every senior OpenSearch engineer keeps in head:\n  85 \u002F 75 \u002F 20.** Disk at 85% triggers the flood-stage read-only\n  block (managed default `low: 85%` \u002F `high: 90%` \u002F `flood: 95%`;\n  the well-known write-block hits at flood). JVM heap pressure above\n  75% triggers old-gen GC storms. Shard count per data node should\n  stay near 20 × (data node count) — i.e. `(primary × replica)` should\n  equal data node count × 20 as a steady-state ceiling. These three\n  thresholds catch the large majority of cluster incidents before\n  they cascade.\n- **Read-only block is a symptom, not the root cause.** When flood\n  trips, OpenSearch sets `index.blocks.read_only_allow_delete` on\n  every index. Freeing disk and rerouting shards clears the block,\n  but the disk pressure that triggered it has an upstream cause —\n  unbounded index growth, missing ISM policy, replica increase, or\n  shard relocation. Always trace one layer up from the flood block.\n- **INSUFFICIENT_DATA is acceptable.** Cluster incidents frequently\n  present with partial telemetry (no `_cat\u002Fshards` snapshot, no\n  CloudTrail for a config change). If a failing probe cannot be\n  obtained, emit INSUFFICIENT_DATA with the specific missing inputs\n  and the next probe to run — do not declare a verdict on inference.\n\n## Mindset\n\nAn OpenSearch incident is almost always a resource pressure event\nthat crossed a published threshold. The cluster was healthy\nyesterday; today the disk crossed flood, the heap crossed 75%, the\nshard count crossed 20 × node, or a snapshot ran longer than\nexpected. Senior search engineers do not start by reading mapping\nfiles or query DSL — they start with `_cluster\u002Fhealth`,\n`_cat\u002Fallocation`, and the CloudWatch `ClusterIndexWritesBlocked`,\n`JVMHeapPressure`, and `ClusterStatus.red` metrics. Only once\nresource pressure is ruled out do they look at mapping design, slow\nqueries, or upgrade state.\n\n→ Extended senior-engineer behaviours moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Layer | First probe |\n|---|---|---|\n| `ClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api]` | DISK_WATERMARK_FLOOD | `_cat\u002Fallocation?v` (disk.percent per node); CloudWatch `FreeStorageSpace` |\n| `ClusterBlockException: TOOMANYREQUESTS` \u002F writes blocked alarm | DISK_WATERMARK_HIGH or JVM_HEAP_PRESSURE | `_cluster\u002Fhealth?pretty`, `ClusterIndexWritesBlocked` |\n| `cluster_status: red` | CLUSTER_RED \u002F SHARD_ALLOCATION \u002F SPLIT_BRAIN | `_cat\u002Fshards?v` for UNASSIGNED; `_cat\u002Fnodes?v` for node loss |\n| `cluster_status: yellow` | CLUSTER_YELLOW \u002F SHARD_ALLOCATION | `_cluster\u002Fhealth?pretty` (`relocating_shards`, `unassigned_shards`) |\n| `JVMHeapPressure > 75%`, GC spikes | JVM_HEAP_PRESSURE | CloudWatch `JVMHeapPressure`, `OldGenGCTime` |\n| `OutOfMemoryError: Java heap space`, node dropped | JVM_OOM | CloudWatch `JVMMemoryPressure`, application logs |\n| `thread_pool [search] rejected execution` | THREAD_POOL_SEARCH | `_cat\u002Fthread_pool\u002Fsearch?v` |\n| `thread_pool [write] rejected execution`, 429 | THREAD_POOL_WRITE | `_cat\u002Fthread_pool\u002Fwrite?v` |\n| `circuit_breaking_exception [parent]` | CIRCUIT_BREAKER_PARENT | `_nodes\u002Fstats\u002Fbreaker`, query shape |\n| `circuit_breaking_exception [fielddata]` | CIRCUIT_BREAKER_FIELDDATA | `_nodes\u002Fstats\u002Findices\u002Ffielddata` |\n| Unassigned shards in `_cat\u002Fshards` | SHARD_ALLOCATION | `_cluster\u002Fallocation\u002Fexplain` |\n| Slow query, slow log > 5s | SLOW_QUERY | `_cat\u002Findices` slow log, query DSL |\n| `Limit of total fields [1000] exceeded` | MAPPING_EXPLOSION | `_mapping?pretty`, field count |\n| `SnapshotInProgressException` on delete | SNAPSHOT_BLOCKING_DELETE | `_snapshot\u002F_status` |\n| UltraWarm migration: `node does not have enough disk` | COLD_HOT_MIGRATION | hot node disk |\n| `RollbackInProgress` after upgrade | UPGRADE_ROLLBACK | `describe-domain-config` |\n| Two masters visible, cluster split | SPLIT_BRAIN | `_cat\u002Fmaster`, `_cat\u002Fnodes?v` |\n\n## Pre-flight: cluster state and gather-info gate\n\nBefore running symptom-specific probes, gather the canonical cluster\nstate and short-circuit on cluster-wide events that mimic per-index\nfailures.\n\n→ Pre-flight gather-info CLI block moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n### Cluster-state short-circuit\n\n| Signal | Effect on diagnosis |\n|---|---|\n| `status: green` but client reports errors | Issue is per-index, per-query, or per-client; not cluster-wide. Pivot to the error string. |\n| `status: yellow`, `relocating_shards: > 0` | Active rebalance. Writes succeed. Investigate only if `unassigned_shards` non-zero or yellow persists > 30 min. |\n| `status: yellow`, `unassigned_shards: > 0` | Replica shards cannot allocate. Jump to SHARD_ALLOCATION. |\n| `status: red` | Primary shard unallocated. Data unavailability — jump to CLUSTER_RED as high-severity. |\n| `timed_out: true` | Cluster overloaded. Treat as JVM_HEAP_PRESSURE or thread-pool exhaustion until proven otherwise. |\n| `number_of_nodes: decreased` vs expected | Node loss. Investigate via CloudTrail and AWS Health. |\n\nIf the input is malformed (missing DomainName, absent symptom, no\nerror string), emit:\n\n→ Malformed-input INSUFFICIENT_DATA example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nThe diagnostic tree is symptom-driven. Pick the entry point based on\nthe observed symptom, then walk the layer-specific probes in order.\nEach layer ends with either a positive root-cause confirmation\n(failing probe that matches the symptom) or a pass that moves to the\nnext layer. **Never emit ROOT_CAUSE_IDENTIFIED without a failing\nprobe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\n→ Full Step-0 expert knowledge moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| `ClusterBlockException: FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api` | Step 2 — Disk watermarks |\n| `ClusterBlockException` generic \u002F writes blocked | Step 2 + Step 3 (heap) |\n| `cluster status: red` | Step 5 — Cluster red |\n| `cluster status: yellow` persistent > 30 min | Step 6 — Cluster yellow |\n| `JVMHeapPressure > 75%` alarm \u002F `OutOfMemoryError` | Step 3 — JVM heap |\n| `thread_pool [search] rejected`, `[write] rejected` | Step 4 — Thread pools |\n| `circuit_breaking_exception` | Step 7 — Circuit breakers |\n| Unassigned shards in `_cat\u002Fshards` | Step 8 — Shard allocation |\n| Slow query, slow log > 5s | Step 9 — Slow query |\n| `Limit of total fields [1000] exceeded` | Step 10 — Mapping explosion |\n| `SnapshotInProgressException` on delete | Step 11 — Snapshot blocking |\n| `RollbackInProgress`, upgrade issue | Step 12a — Upgrade rollback |\n| None of the above | Step 12 — INSUFFICIENT_DATA |\n\n### Step 2: Disk watermarks — ClusterBlockException read-only\n\nSymptom: writes return\n`ClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete\nadmin api]`. CloudWatch `ClusterIndexWritesBlocked > 0` alarm fires.\nReads still succeed until heap pressure cascades.\n\n→ Disk-watermark probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\nAny node with `disk.percent >= 95` is at flood stage. The read-only\nblock applies cluster-wide as soon as ANY node hits flood.\n\n| Stage | Threshold | Cluster effect | Recovery |\n|---|---|---|---|\n| `low` | 85% | New shards do not allocate to this node. | Free disk below 85%; cluster rebalances. |\n| `high` | 90% | Cluster actively relocates shards OFF this node. | Free disk below 85% (cluster continues relocating until then). |\n| `flood_stage` | 95% | `index.blocks.read_only_allow_delete` set. Writes blocked. | Free disk below 95%; block auto-clears. Force-clear via `PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}` only after disk is below flood. |\n\n#### Identify why disk filled\n\n→ Root-cause catalog for disk fill moved verbatim to [references\u002Fdisk-watermark-and-jvm-heap-reference.md](references\u002Fdisk-watermark-and-jvm-heap-reference.md).\n\n**Verdicts:**\n- Flood stage confirmed, root cause is unbounded growth:\n  ROOT_CAUSE_IDENTIFIED, `LAYER: DISK_WATERMARK_FLOOD`. Fix: delete or\n  rollover old indices, free disk below 85%, force-clear the block\n  after disk recovers.\n- High watermark with active relocation: ROOT_CAUSE_IDENTIFIED,\n  `LAYER: DISK_WATERMARK_HIGH`. Fix: add data nodes OR reduce replica\n  count OR delete indices.\n\n### Step 3: JVM heap pressure — old-gen GC storms and OOM\n\nSymptom: CloudWatch `JVMHeapPressure > 75%` sustained; `OldGenGCTime`\nrising; queries slow dramatically; eventual `OutOfMemoryError: Java\nheap space` if untreated.\n\n→ JVM heap probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n**Decision matrix:**\n\n| Heap pressure pattern | Likely cause | Fix direction |\n|---|---|---|\n| Sustained 75-85%, gradual climb | Working set grew (open indices, fielddata) | Close old indices; reduce replicas; add data nodes |\n| Spike to 95%+ on a single query | Single heavy query (terms agg on high-card field) | Rewrite query; cap via `_cluster\u002Fsettings` |\n| Spike correlates with fielddata size | Fielddata loaded for keyword\u002Ftext field | Disable fielddata; use the `keyword` subtype |\n| Spike correlates with snapshot or force-merge | Background task competing for heap | Reschedule off-peak |\n| `OutOfMemoryError` followed by node drop | Heap exhausted; JVM killed by SIGKILL | Reduce working set before restart; raise Support ticket |\n\nThe canonical triad — close old indices, reduce replicas, add data\nnodes — resolves most heap-pressure incidents without raising the\nheap (fixed on managed domains up to 32 GB).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: JVM_HEAP_PRESSURE` (or\n`JVM_OOM` if the error already occurred).\n\n### Step 4: Thread-pool rejections\n\nSymptom: client receives 429 or\n`EsRejectedExecutionException: rejected execution of\norg.opensearch.action.search.SearchTransportService` (search) or\n`org.opensearch.action.bulk.BulkShardRequest` (write).\n\n→ Thread-pool probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\nThe `rejected` column counts rejected tasks since node start. A\nnon-zero, growing `rejected` count is the positive evidence.\n\n| Pool | Default queue | Cause pattern | Fix |\n|---|---|---|---|\n| `search` | 1000 | Concurrent or slow searches | Scale data nodes; optimise slow queries (Step 9); throttle client |\n| `write` | 10000 (varies) | Bulk indexing rate exceeds shard capacity | Reduce bulk batch size; raise `index.refresh_interval`; scale data nodes |\n| `get` | 1000 | High rate of multi-get by ID | Usually transient; scale out |\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: THREAD_POOL_SEARCH` or\n`THREAD_POOL_WRITE`.\n\n### Step 5: Cluster red — primary shard unassigned\n\nSymptom: `_cluster\u002Fhealth` returns `status: red`. At least one\nprimary shard is unallocated; data is unavailable for that index.\n\n→ Cluster-red probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n`allocate_explanation` returns a list of deciders. The FIRST decider\nis the binding constraint. Verdicts: disk-watermark-blocked primary\nallocation → ROOT_CAUSE_IDENTIFIED, `LAYER: SHARD_ALLOCATION` (cause:\nDISK_WATERMARK_HIGH); node loss with no replicas →\n`LAYER: CLUSTER_RED` (cause: NODE_LOSS, restore from snapshot);\n`max_shards_per_node` exhausted → `LAYER: SHARD_ALLOCATION` (cause:\nSHARD_CEILING).\n\n### Step 6: Cluster yellow — replica unassigned\n\nSymptom: `_cluster\u002Fhealth` returns `status: yellow`. All primaries\nallocated; at least one replica is not. Writes succeed. The\ndiagnostic path mirrors Step 5 with `primary: false`. Common causes:\nreplica count exceeds (data node count − 1); a data node is in the\n`restart` or `leaving` state; allocation deciders blocked replica\nplacement.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CLUSTER_YELLOW`.\n\n### Step 7: Circuit breakers\n\nSymptom: queries fail with `circuit_breaking_exception`. The error\nnames the breaker: `[parent]`, `[fielddata]`, or `[request]`.\n\n→ Circuit-breaker probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n| Breaker | Default limit | Triggers when |\n|---|---|---|\n| `parent` | 95% of heap | Sum of all child breakers + in-flight allocations |\n| `fielddata` | 40% of heap | Fielddata cache for text\u002Fkeyword fields |\n| `request` | 60% of heap | Per-request allocation (aggregations, sorting) |\n| `in_flight_requests` | 100% of heap | HTTP\u002Ftransport in-flight buffers |\n| `accounting` | 100% of heap | Lucene segments memory |\n\nFix direction: `fielddata` trip → disable fielddata on the field, use\nthe `keyword` subtype. `request` trip → rewrite the aggregation\n(reduce cardinality, paginate). `parent` trip → read the inner\nbreaker that pushed parent over and fix it.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CIRCUIT_BREAKER_PARENT` \u002F\n`CIRCUIT_BREAKER_FIELDDATA` \u002F `CIRCUIT_BREAKER_REQUEST`.\n\n### Step 8: Shard allocation decider reference\n\n→ Decider-to-fix table moved verbatim to [references\u002Fshard-allocation-and-threadpool-reference.md](references\u002Fshard-allocation-and-threadpool-reference.md).\n\n### Step 9: Slow queries — slow log analysis\n\nSymptom: queries slow, `ThreadedSearchQueue` rises, slow logs record\n> 5s per query.\n\n→ Slow-log probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Heavy query shape catalog moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: SLOW_QUERY`.\n\n### Step 10: Mapping explosion\n\nSymptom: write failures with\n`Limit of total fields [1000] has been exceeded`.\n\n→ Mapping probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Mapping-explosion remediation detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: MAPPING_EXPLOSION`.\n\n### Step 11: Snapshot blocking index deletion\n\nSymptom: `DELETE \u002F\u003Cindex>` returns\n`SnapshotInProgressException: snapshot is in progress`.\n\n→ Snapshot status probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Automated-snapshot behavior detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: SNAPSHOT_BLOCKING_DELETE`.\n\n### Step 12a: Upgrade rollback\n\nSymptom: an in-place engine-version upgrade was initiated; the domain\nshows `UpgradeProcessing: false` and `RollbackInProgress: true`.\n\n→ Upgrade-rollback probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Rollback trigger catalog moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: UPGRADE_ROLLBACK`.\n\n### Step 12b: INSUFFICIENT_DATA\n\nIf none of the above produced a positive root-cause match, OR a probe\nrequires operator input (live-account credentials, missing\n`_cluster\u002Fhealth` output), emit INSUFFICIENT_DATA with the specific\nmissing pieces and the next probe to run once the info is available.\n\n## Output format\n\n```text\nTARGET: \u003Cdomain-name>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nROOT_CAUSE: \u003Cone-sentence naming the failed subsystem>\nLAYER: \u003CDISK_WATERMARK_FLOOD | DISK_WATERMARK_HIGH | JVM_HEAP_PRESSURE |\n        JVM_OOM | THREAD_POOL_SEARCH | THREAD_POOL_WRITE |\n        SHARD_ALLOCATION | CLUSTER_YELLOW | CLUSTER_RED |\n        SPLIT_BRAIN | SLOW_QUERY | MAPPING_EXPLOSION |\n        CIRCUIT_BREAKER_PARENT | CIRCUIT_BREAKER_FIELDDATA |\n        CIRCUIT_BREAKER_REQUEST | SNAPSHOT_BLOCKING_DELETE |\n        COLD_HOT_MIGRATION | UPGRADE_ROLLBACK | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — error string or behaviour>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cdomain> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — flood-stage disk block\n\n```text\nTARGET: prod-logs-cluster\nVERDICT: ROOT_CAUSE_IDENTIFIED\nROOT_CAUSE: ClusterBlockException is the flood-stage read-only block;\n  node `prod-logs-cluster-data-3` is at 97% disk; unbounded index\n  growth — `logs-2024-*` indices dating back 14 months have no ISM\n  policy to roll over or delete.\nLAYER: DISK_WATERMARK_FLOOD\nEVIDENCE:\n  - Symptom: every write returns `ClusterBlockException: blocked by:\n    [FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api]`;\n    `ClusterIndexWritesBlocked` = 1 for 12 minutes.\n  - Probe: `_cat\u002Fallocation?v` shows data-3 at `disk.percent: 97`;\n    the other two nodes are at 91% and 88%.\n  - Probe: `_cat\u002Findices\u002Flogs-*?v&s=index` returns 427 monthly\n    indices from 2023-02 to 2024-12; oldest 14 months have no ISM\n    policy attached.\n  - Passing: `JVMHeapPressure` Average = 41%; `status: yellow`;\n    no `EsRejectedExecutionException`.\nREMEDIATION:\n  1. Delete the oldest 6 months of unqueried indices:\n     DELETE \u002Flogs-2023-02,logs-2023-03,logs-2023-04,logs-2023-05,logs-2023-06,logs-2023-07\n  2. Verify disk drops below flood; the block auto-clears once all\n     nodes are below 95%.\n  3. If the block does not auto-clear within 5 minutes, force-clear:\n     PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}\n  4. Long-term: attach an ISM policy that rolls monthly indices to\n     UltraWarm at 30 days and deletes at 12 months.\nCONFIRM: Before deleting indices or clearing the block, emit and await:\n  \"CONFIRM: About to delete logs-2023-02 through logs-2023-07 on\n   prod-logs-cluster. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom. A \"process of elimination\" erodes trust.\n- NEVER free disk and stop there. The flood-stage block is a symptom;\n  the upstream cause (no ISM, replica increase, force-merge under\n  pressure) re-triggers within days. Name the upstream cause.\n- NEVER recommend raising the JVM heap on a managed OpenSearch domain\n  without first checking the instance class. Heap is fixed at 50% of\n  instance RAM up to 32 GB.\n- NEVER recommend raising thread-pool queue sizes as a remediation.\n  Managed OpenSearch overrides `_cluster\u002Fsettings` thread-pool edits.\n  Scale out or throttle the client.\n- NEVER read past the first decider in `_cluster\u002Fallocation\u002Fexplain`.\n  The remaining deciders are cascading `NO` votes.\n- NEVER force-delete an index mid-snapshot. Force-deleting risks\n  repository corruption that requires AWS Support to repair.\n- NEVER conclude \"split-brain\" without checking the master quorum.\n  Managed OpenSearch uses 3 dedicated master nodes by default; a\n  true split-brain requires an AZ partition. The more common cause\n  of \"two masters visible\" is a stale `_cat\u002Fnodes` cache.\n- NEVER treat cluster yellow as a P0. Yellow means redundancy loss;\n  reads and writes succeed. Treat as P2 unless node loss may cascade.\n- NEVER force-clear the flood-stage read-only block before freeing\n  disk below 95%. Force-clearing while disk is still above flood\n  causes the block to immediately re-apply.\n- NEVER scale the cluster as the first remediation for heap pressure.\n  Reducing the working set (close indices, reduce replicas, migrate\n  to UltraWarm) is faster, cheaper, and addresses the actual cause.\n- NEVER recommend `_forcemerge` under disk or heap pressure.\n  Force-merge temporarily doubles segment file size during the merge.\n- NEVER initiate an in-place version upgrade when the cluster is red\n  or has `JVMHeapPressure > 75%`. Validation will fail and roll back.\n- NEVER delete snapshots manually to free space. Manual S3 deletes\n  from the snapshot bucket corrupt the repository.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n→ Pre-flight safety gates moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n## Remediation guidance\n\n### For DISK_WATERMARK_FLOOD\nFree disk below 85% by deleting or closing old indices; verify the\nblock auto-clears within 5 minutes; force-clear via\n`PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}` if\nneeded; attach an ISM policy to roll over and delete future indices.\n\n### For DISK_WATERMARK_HIGH\nFree disk below 85% (cluster continues relocating until then); add\ndata nodes if pressure is from intended growth; reduce replica count\nif replicas are the cause.\n\n### For JVM_HEAP_PRESSURE \u002F JVM_OOM\nClose indices not actively queried; reduce replica count temporarily;\ndisable fielddata on text fields; migrate cold indices to UltraWarm;\nscale the instance class up to raise heap (capped at 32 GB).\n\n### For THREAD_POOL_SEARCH \u002F THREAD_POOL_WRITE\nFor search: tune slow queries (Step 9); add data nodes. For write:\nreduce bulk batch size; raise `index.refresh_interval`; add data nodes.\n\n### For SHARD_ALLOCATION\nRead the first decider in `_cluster\u002Fallocation\u002Fexplain`; free disk,\nadd nodes, or fix allocation filters. Raise\n`cluster.max_shards_per_node` if the cap is the binding constraint\n(deferred fix).\n\n### For CIRCUIT_BREAKER_*\nIdentify the inner breaker (parent wraps the others). For fielddata:\ndisable fielddata on the field. For request: rewrite the aggregation\n(reduce cardinality, paginate). For parent: fix the inner breaker.\n\n### For MAPPING_EXPLOSION\nSet `dynamic: false` or `strict` on the offending subtree; raise\n`index.mapping.total_fields.limit` as a short-term deferral; flatten\nthe offending subtree into a single text field.\n\n### For SNAPSHOT_BLOCKING_DELETE\nPoll `_snapshot\u002F_status` until no snapshots are IN_PROGRESS; delete\nthe index after the snapshot completes; for immediate deletion,\ncancel the snapshot explicitly via\n`DELETE \u002F_snapshot\u002F\u003Crepo>\u002F\u003Csnapshot>` and document it.\n\n### For UPGRADE_ROLLBACK\nRead the validation failure from `describe-domain`\n`ChangeProgressDetails` and the application logs; fix the trigger\n(deprecated APIs, incompatible mappings, cluster health red);\nre-initiate after the cluster is green and heap \u003C 75%.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert knowledge, extended senior-engineer behaviours, heavy query shapes, mapping\u002Fsnapshot\u002Frollback detail\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — all layer probe command blocks, pre-flight gather CLI, pre-flight safety gates\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — malformed-input INSUFFICIENT_DATA output example\n- [references\u002Fdisk-watermark-and-jvm-heap-reference.md](references\u002Fdisk-watermark-and-jvm-heap-reference.md) — disk watermark + JVM heap detail — extended with why-disk-fills root-cause catalog\n- [references\u002Fshard-allocation-and-threadpool-reference.md](references\u002Fshard-allocation-and-threadpool-reference.md) — shard allocation + thread pool detail — extended with decider-to-fix table\n\n## Domain\n\nAWS CloudOps \u002F Analytics — OpenSearch Service Managed Clusters,\nCluster Health Diagnostics, JVM Pressure Analysis, Shard Allocation\nDecoders, Disk Watermark Recovery, Circuit Breaker Triage, Index\nLifecycle Management, Snapshot Lifecycle, In-place Version Upgrades.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide — Cluster health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmonitoring-cloudwatch.html\n- **Disk-based allocation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsize-your-clusters.html\n- **JVM heap pressure and OOM** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fhandling-errors.html\n- **Index State Management** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fism.html\n- **UltraWarm and cold storage** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fultrawarm.html\n- **Snapshots** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-snapshots.html\n- **In-place upgrades** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fversion-maturity.html\n- **Circuit breakers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fcircuit-breaker.html\n- **CloudWatch metrics for OpenSearch** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-cloudwatch-metrics.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n","# OpenSearch Cluster Troubleshooter\n\n## Quick start\n\n- **Symptom → layer map (the first plausible match drives the first\n  probe):** `ClusterBlockException: index read-only \u002F delete admin api`\n  → DISK_WATERMARK_FLOOD (85% flood stage); `cluster status: red` →\n  CLUSTER_RED \u002F SHARD_ALLOCATION \u002F SPLIT_BRAIN; `cluster status: yellow`\n  → CLUSTER_YELLOW \u002F SHARD_ALLOCATION; `JVMHeapPressure > 75%` alarm →\n  JVM_HEAP_PRESSURE; `OutOfMemoryError: Java heap space` → JVM_OOM;\n  `thread_pool [search] rejected execution` → THREAD_POOL_SEARCH;\n  `thread_pool [write] rejected execution` → THREAD_POOL_WRITE;\n  `circuit_breaking_exception` with `parent breaker` →\n  CIRCUIT_BREAKER_PARENT; unassigned shards in `_cat\u002Fshards` →\n  SHARD_ALLOCATION; `SnapshotInProgressException` on delete →\n  SNAPSHOT_BLOCKING_DELETE.\n- **Always verify with a probe, never guess.** Each layer has a single\n  command that proves or disproves it. A ROOT_CAUSE_IDENTIFIED verdict\n  requires positive evidence — a failing probe that matches the\n  symptom — not a process of elimination that \"must be the disk.\"\n- **The three numbers every senior OpenSearch engineer keeps in head:\n  85 \u002F 75 \u002F 20.** Disk at 85% triggers the flood-stage read-only\n  block (managed default `low: 85%` \u002F `high: 90%` \u002F `flood: 95%`;\n  the well-known write-block hits at flood). JVM heap pressure above\n  75% triggers old-gen GC storms. Shard count per data node should\n  stay near 20 × (data node count) — i.e. `(primary × replica)` should\n  equal data node count × 20 as a steady-state ceiling. These three\n  thresholds catch the large majority of cluster incidents before\n  they cascade.\n- **Read-only block is a symptom, not the root cause.** When flood\n  trips, OpenSearch sets `index.blocks.read_only_allow_delete` on\n  every index. Freeing disk and rerouting shards clears the block,\n  but the disk pressure that triggered it has an upstream cause —\n  unbounded index growth, missing ISM policy, replica increase, or\n  shard relocation. Always trace one layer up from the flood block.\n- **INSUFFICIENT_DATA is acceptable.** Cluster incidents frequently\n  present with partial telemetry (no `_cat\u002Fshards` snapshot, no\n  CloudTrail for a config change). If a failing probe cannot be\n  obtained, emit INSUFFICIENT_DATA with the specific missing inputs\n  and the next probe to run — do not declare a verdict on inference.\n\n## Mindset\n\nAn OpenSearch incident is almost always a resource pressure event\nthat crossed a published threshold. The cluster was healthy\nyesterday; today the disk crossed flood, the heap crossed 75%, the\nshard count crossed 20 × node, or a snapshot ran longer than\nexpected. Senior search engineers do not start by reading mapping\nfiles or query DSL — they start with `_cluster\u002Fhealth`,\n`_cat\u002Fallocation`, and the CloudWatch `ClusterIndexWritesBlocked`,\n`JVMHeapPressure`, and `ClusterStatus.red` metrics. Only once\nresource pressure is ruled out do they look at mapping design, slow\nqueries, or upgrade state.\n\n→ Extended senior-engineer behaviours moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Quick reference — symptom triage table\n\n| Symptom phrase \u002F error | Layer | First probe |\n|---|---|---|\n| `ClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api]` | DISK_WATERMARK_FLOOD | `_cat\u002Fallocation?v` (disk.percent per node); CloudWatch `FreeStorageSpace` |\n| `ClusterBlockException: TOOMANYREQUESTS` \u002F writes blocked alarm | DISK_WATERMARK_HIGH or JVM_HEAP_PRESSURE | `_cluster\u002Fhealth?pretty`, `ClusterIndexWritesBlocked` |\n| `cluster_status: red` | CLUSTER_RED \u002F SHARD_ALLOCATION \u002F SPLIT_BRAIN | `_cat\u002Fshards?v` for UNASSIGNED; `_cat\u002Fnodes?v` for node loss |\n| `cluster_status: yellow` | CLUSTER_YELLOW \u002F SHARD_ALLOCATION | `_cluster\u002Fhealth?pretty` (`relocating_shards`, `unassigned_shards`) |\n| `JVMHeapPressure > 75%`, GC spikes | JVM_HEAP_PRESSURE | CloudWatch `JVMHeapPressure`, `OldGenGCTime` |\n| `OutOfMemoryError: Java heap space`, node dropped | JVM_OOM | CloudWatch `JVMMemoryPressure`, application logs |\n| `thread_pool [search] rejected execution` | THREAD_POOL_SEARCH | `_cat\u002Fthread_pool\u002Fsearch?v` |\n| `thread_pool [write] rejected execution`, 429 | THREAD_POOL_WRITE | `_cat\u002Fthread_pool\u002Fwrite?v` |\n| `circuit_breaking_exception [parent]` | CIRCUIT_BREAKER_PARENT | `_nodes\u002Fstats\u002Fbreaker`, query shape |\n| `circuit_breaking_exception [fielddata]` | CIRCUIT_BREAKER_FIELDDATA | `_nodes\u002Fstats\u002Findices\u002Ffielddata` |\n| Unassigned shards in `_cat\u002Fshards` | SHARD_ALLOCATION | `_cluster\u002Fallocation\u002Fexplain` |\n| Slow query, slow log > 5s | SLOW_QUERY | `_cat\u002Findices` slow log, query DSL |\n| `Limit of total fields [1000] exceeded` | MAPPING_EXPLOSION | `_mapping?pretty`, field count |\n| `SnapshotInProgressException` on delete | SNAPSHOT_BLOCKING_DELETE | `_snapshot\u002F_status` |\n| UltraWarm migration: `node does not have enough disk` | COLD_HOT_MIGRATION | hot node disk |\n| `RollbackInProgress` after upgrade | UPGRADE_ROLLBACK | `describe-domain-config` |\n| Two masters visible, cluster split | SPLIT_BRAIN | `_cat\u002Fmaster`, `_cat\u002Fnodes?v` |\n\n## Pre-flight: cluster state and gather-info gate\n\nBefore running symptom-specific probes, gather the canonical cluster\nstate and short-circuit on cluster-wide events that mimic per-index\nfailures.\n\n→ Pre-flight gather-info CLI block moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n### Cluster-state short-circuit\n\n| Signal | Effect on diagnosis |\n|---|---|\n| `status: green` but client reports errors | Issue is per-index, per-query, or per-client; not cluster-wide. Pivot to the error string. |\n| `status: yellow`, `relocating_shards: > 0` | Active rebalance. Writes succeed. Investigate only if `unassigned_shards` non-zero or yellow persists > 30 min. |\n| `status: yellow`, `unassigned_shards: > 0` | Replica shards cannot allocate. Jump to SHARD_ALLOCATION. |\n| `status: red` | Primary shard unallocated. Data unavailability — jump to CLUSTER_RED as high-severity. |\n| `timed_out: true` | Cluster overloaded. Treat as JVM_HEAP_PRESSURE or thread-pool exhaustion until proven otherwise. |\n| `number_of_nodes: decreased` vs expected | Node loss. Investigate via CloudTrail and AWS Health. |\n\nIf the input is malformed (missing DomainName, absent symptom, no\nerror string), emit:\n\n→ Malformed-input INSUFFICIENT_DATA example moved verbatim to [references\u002Fworked-examples.md](references\u002Fworked-examples.md).\n\n## Process — Diagnostic decision tree (apply in symptom order)\n\nThe diagnostic tree is symptom-driven. Pick the entry point based on\nthe observed symptom, then walk the layer-specific probes in order.\nEach layer ends with either a positive root-cause confirmation\n(failing probe that matches the symptom) or a pass that moves to the\nnext layer. **Never emit ROOT_CAUSE_IDENTIFIED without a failing\nprobe that matches the symptom.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\n→ Full Step-0 expert knowledge moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n### Step 1: Symptom entry — pick the diagnostic branch\n\n| Symptom | Branch |\n|---|---|\n| `ClusterBlockException: FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api` | Step 2 — Disk watermarks |\n| `ClusterBlockException` generic \u002F writes blocked | Step 2 + Step 3 (heap) |\n| `cluster status: red` | Step 5 — Cluster red |\n| `cluster status: yellow` persistent > 30 min | Step 6 — Cluster yellow |\n| `JVMHeapPressure > 75%` alarm \u002F `OutOfMemoryError` | Step 3 — JVM heap |\n| `thread_pool [search] rejected`, `[write] rejected` | Step 4 — Thread pools |\n| `circuit_breaking_exception` | Step 7 — Circuit breakers |\n| Unassigned shards in `_cat\u002Fshards` | Step 8 — Shard allocation |\n| Slow query, slow log > 5s | Step 9 — Slow query |\n| `Limit of total fields [1000] exceeded` | Step 10 — Mapping explosion |\n| `SnapshotInProgressException` on delete | Step 11 — Snapshot blocking |\n| `RollbackInProgress`, upgrade issue | Step 12a — Upgrade rollback |\n| None of the above | Step 12 — INSUFFICIENT_DATA |\n\n### Step 2: Disk watermarks — ClusterBlockException read-only\n\nSymptom: writes return\n`ClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete\nadmin api]`. CloudWatch `ClusterIndexWritesBlocked > 0` alarm fires.\nReads still succeed until heap pressure cascades.\n\n→ Disk-watermark probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\nAny node with `disk.percent >= 95` is at flood stage. The read-only\nblock applies cluster-wide as soon as ANY node hits flood.\n\n| Stage | Threshold | Cluster effect | Recovery |\n|---|---|---|---|\n| `low` | 85% | New shards do not allocate to this node. | Free disk below 85%; cluster rebalances. |\n| `high` | 90% | Cluster actively relocates shards OFF this node. | Free disk below 85% (cluster continues relocating until then). |\n| `flood_stage` | 95% | `index.blocks.read_only_allow_delete` set. Writes blocked. | Free disk below 95%; block auto-clears. Force-clear via `PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}` only after disk is below flood. |\n\n#### Identify why disk filled\n\n→ Root-cause catalog for disk fill moved verbatim to [references\u002Fdisk-watermark-and-jvm-heap-reference.md](references\u002Fdisk-watermark-and-jvm-heap-reference.md).\n\n**Verdicts:**\n- Flood stage confirmed, root cause is unbounded growth:\n  ROOT_CAUSE_IDENTIFIED, `LAYER: DISK_WATERMARK_FLOOD`. Fix: delete or\n  rollover old indices, free disk below 85%, force-clear the block\n  after disk recovers.\n- High watermark with active relocation: ROOT_CAUSE_IDENTIFIED,\n  `LAYER: DISK_WATERMARK_HIGH`. Fix: add data nodes OR reduce replica\n  count OR delete indices.\n\n### Step 3: JVM heap pressure — old-gen GC storms and OOM\n\nSymptom: CloudWatch `JVMHeapPressure > 75%` sustained; `OldGenGCTime`\nrising; queries slow dramatically; eventual `OutOfMemoryError: Java\nheap space` if untreated.\n\n→ JVM heap probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n**Decision matrix:**\n\n| Heap pressure pattern | Likely cause | Fix direction |\n|---|---|---|\n| Sustained 75-85%, gradual climb | Working set grew (open indices, fielddata) | Close old indices; reduce replicas; add data nodes |\n| Spike to 95%+ on a single query | Single heavy query (terms agg on high-card field) | Rewrite query; cap via `_cluster\u002Fsettings` |\n| Spike correlates with fielddata size | Fielddata loaded for keyword\u002Ftext field | Disable fielddata; use the `keyword` subtype |\n| Spike correlates with snapshot or force-merge | Background task competing for heap | Reschedule off-peak |\n| `OutOfMemoryError` followed by node drop | Heap exhausted; JVM killed by SIGKILL | Reduce working set before restart; raise Support ticket |\n\nThe canonical triad — close old indices, reduce replicas, add data\nnodes — resolves most heap-pressure incidents without raising the\nheap (fixed on managed domains up to 32 GB).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: JVM_HEAP_PRESSURE` (or\n`JVM_OOM` if the error already occurred).\n\n### Step 4: Thread-pool rejections\n\nSymptom: client receives 429 or\n`EsRejectedExecutionException: rejected execution of\norg.opensearch.action.search.SearchTransportService` (search) or\n`org.opensearch.action.bulk.BulkShardRequest` (write).\n\n→ Thread-pool probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\nThe `rejected` column counts rejected tasks since node start. A\nnon-zero, growing `rejected` count is the positive evidence.\n\n| Pool | Default queue | Cause pattern | Fix |\n|---|---|---|---|\n| `search` | 1000 | Concurrent or slow searches | Scale data nodes; optimise slow queries (Step 9); throttle client |\n| `write` | 10000 (varies) | Bulk indexing rate exceeds shard capacity | Reduce bulk batch size; raise `index.refresh_interval`; scale data nodes |\n| `get` | 1000 | High rate of multi-get by ID | Usually transient; scale out |\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: THREAD_POOL_SEARCH` or\n`THREAD_POOL_WRITE`.\n\n### Step 5: Cluster red — primary shard unassigned\n\nSymptom: `_cluster\u002Fhealth` returns `status: red`. At least one\nprimary shard is unallocated; data is unavailable for that index.\n\n→ Cluster-red probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n`allocate_explanation` returns a list of deciders. The FIRST decider\nis the binding constraint. Verdicts: disk-watermark-blocked primary\nallocation → ROOT_CAUSE_IDENTIFIED, `LAYER: SHARD_ALLOCATION` (cause:\nDISK_WATERMARK_HIGH); node loss with no replicas →\n`LAYER: CLUSTER_RED` (cause: NODE_LOSS, restore from snapshot);\n`max_shards_per_node` exhausted → `LAYER: SHARD_ALLOCATION` (cause:\nSHARD_CEILING).\n\n### Step 6: Cluster yellow — replica unassigned\n\nSymptom: `_cluster\u002Fhealth` returns `status: yellow`. All primaries\nallocated; at least one replica is not. Writes succeed. The\ndiagnostic path mirrors Step 5 with `primary: false`. Common causes:\nreplica count exceeds (data node count − 1); a data node is in the\n`restart` or `leaving` state; allocation deciders blocked replica\nplacement.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CLUSTER_YELLOW`.\n\n### Step 7: Circuit breakers\n\nSymptom: queries fail with `circuit_breaking_exception`. The error\nnames the breaker: `[parent]`, `[fielddata]`, or `[request]`.\n\n→ Circuit-breaker probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n| Breaker | Default limit | Triggers when |\n|---|---|---|\n| `parent` | 95% of heap | Sum of all child breakers + in-flight allocations |\n| `fielddata` | 40% of heap | Fielddata cache for text\u002Fkeyword fields |\n| `request` | 60% of heap | Per-request allocation (aggregations, sorting) |\n| `in_flight_requests` | 100% of heap | HTTP\u002Ftransport in-flight buffers |\n| `accounting` | 100% of heap | Lucene segments memory |\n\nFix direction: `fielddata` trip → disable fielddata on the field, use\nthe `keyword` subtype. `request` trip → rewrite the aggregation\n(reduce cardinality, paginate). `parent` trip → read the inner\nbreaker that pushed parent over and fix it.\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: CIRCUIT_BREAKER_PARENT` \u002F\n`CIRCUIT_BREAKER_FIELDDATA` \u002F `CIRCUIT_BREAKER_REQUEST`.\n\n### Step 8: Shard allocation decider reference\n\n→ Decider-to-fix table moved verbatim to [references\u002Fshard-allocation-and-threadpool-reference.md](references\u002Fshard-allocation-and-threadpool-reference.md).\n\n### Step 9: Slow queries — slow log analysis\n\nSymptom: queries slow, `ThreadedSearchQueue` rises, slow logs record\n> 5s per query.\n\n→ Slow-log probe commands moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Heavy query shape catalog moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: SLOW_QUERY`.\n\n### Step 10: Mapping explosion\n\nSymptom: write failures with\n`Limit of total fields [1000] has been exceeded`.\n\n→ Mapping probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Mapping-explosion remediation detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: MAPPING_EXPLOSION`.\n\n### Step 11: Snapshot blocking index deletion\n\nSymptom: `DELETE \u002F\u003Cindex>` returns\n`SnapshotInProgressException: snapshot is in progress`.\n\n→ Snapshot status probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Automated-snapshot behavior detail moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: SNAPSHOT_BLOCKING_DELETE`.\n\n### Step 12a: Upgrade rollback\n\nSymptom: an in-place engine-version upgrade was initiated; the domain\nshows `UpgradeProcessing: false` and `RollbackInProgress: true`.\n\n→ Upgrade-rollback probe command moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n→ Rollback trigger catalog moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n**Verdict:** ROOT_CAUSE_IDENTIFIED, `LAYER: UPGRADE_ROLLBACK`.\n\n### Step 12b: INSUFFICIENT_DATA\n\nIf none of the above produced a positive root-cause match, OR a probe\nrequires operator input (live-account credentials, missing\n`_cluster\u002Fhealth` output), emit INSUFFICIENT_DATA with the specific\nmissing pieces and the next probe to run once the info is available.\n\n## Output format\n\n```text\nTARGET: \u003Cdomain-name>\nVERDICT: ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA\nROOT_CAUSE: \u003Cone-sentence naming the failed subsystem>\nLAYER: \u003CDISK_WATERMARK_FLOOD | DISK_WATERMARK_HIGH | JVM_HEAP_PRESSURE |\n        JVM_OOM | THREAD_POOL_SEARCH | THREAD_POOL_WRITE |\n        SHARD_ALLOCATION | CLUSTER_YELLOW | CLUSTER_RED |\n        SPLIT_BRAIN | SLOW_QUERY | MAPPING_EXPLOSION |\n        CIRCUIT_BREAKER_PARENT | CIRCUIT_BREAKER_FIELDDATA |\n        CIRCUIT_BREAKER_REQUEST | SNAPSHOT_BLOCKING_DELETE |\n        COLD_HOT_MIGRATION | UPGRADE_ROLLBACK | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved symptom — error string or behaviour>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cdomain> in \u003Cregion>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — flood-stage disk block\n\n```text\nTARGET: prod-logs-cluster\nVERDICT: ROOT_CAUSE_IDENTIFIED\nROOT_CAUSE: ClusterBlockException is the flood-stage read-only block;\n  node `prod-logs-cluster-data-3` is at 97% disk; unbounded index\n  growth — `logs-2024-*` indices dating back 14 months have no ISM\n  policy to roll over or delete.\nLAYER: DISK_WATERMARK_FLOOD\nEVIDENCE:\n  - Symptom: every write returns `ClusterBlockException: blocked by:\n    [FORBIDDEN\u002F12\u002Findex read-only \u002F delete admin api]`;\n    `ClusterIndexWritesBlocked` = 1 for 12 minutes.\n  - Probe: `_cat\u002Fallocation?v` shows data-3 at `disk.percent: 97`;\n    the other two nodes are at 91% and 88%.\n  - Probe: `_cat\u002Findices\u002Flogs-*?v&s=index` returns 427 monthly\n    indices from 2023-02 to 2024-12; oldest 14 months have no ISM\n    policy attached.\n  - Passing: `JVMHeapPressure` Average = 41%; `status: yellow`;\n    no `EsRejectedExecutionException`.\nREMEDIATION:\n  1. Delete the oldest 6 months of unqueried indices:\n     DELETE \u002Flogs-2023-02,logs-2023-03,logs-2023-04,logs-2023-05,logs-2023-06,logs-2023-07\n  2. Verify disk drops below flood; the block auto-clears once all\n     nodes are below 95%.\n  3. If the block does not auto-clear within 5 minutes, force-clear:\n     PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}\n  4. Long-term: attach an ISM policy that rolls monthly indices to\n     UltraWarm at 30 days and deletes at 12 months.\nCONFIRM: Before deleting indices or clearing the block, emit and await:\n  \"CONFIRM: About to delete logs-2023-02 through logs-2023-07 on\n   prod-logs-cluster. Proceed? (yes\u002Fno)\"\n```\n\n## Anti-Patterns — NEVER\n\n- NEVER declare ROOT_CAUSE_IDENTIFIED without a failing probe that\n  matches the symptom. A \"process of elimination\" erodes trust.\n- NEVER free disk and stop there. The flood-stage block is a symptom;\n  the upstream cause (no ISM, replica increase, force-merge under\n  pressure) re-triggers within days. Name the upstream cause.\n- NEVER recommend raising the JVM heap on a managed OpenSearch domain\n  without first checking the instance class. Heap is fixed at 50% of\n  instance RAM up to 32 GB.\n- NEVER recommend raising thread-pool queue sizes as a remediation.\n  Managed OpenSearch overrides `_cluster\u002Fsettings` thread-pool edits.\n  Scale out or throttle the client.\n- NEVER read past the first decider in `_cluster\u002Fallocation\u002Fexplain`.\n  The remaining deciders are cascading `NO` votes.\n- NEVER force-delete an index mid-snapshot. Force-deleting risks\n  repository corruption that requires AWS Support to repair.\n- NEVER conclude \"split-brain\" without checking the master quorum.\n  Managed OpenSearch uses 3 dedicated master nodes by default; a\n  true split-brain requires an AZ partition. The more common cause\n  of \"two masters visible\" is a stale `_cat\u002Fnodes` cache.\n- NEVER treat cluster yellow as a P0. Yellow means redundancy loss;\n  reads and writes succeed. Treat as P2 unless node loss may cascade.\n- NEVER force-clear the flood-stage read-only block before freeing\n  disk below 95%. Force-clearing while disk is still above flood\n  causes the block to immediately re-apply.\n- NEVER scale the cluster as the first remediation for heap pressure.\n  Reducing the working set (close indices, reduce replicas, migrate\n  to UltraWarm) is faster, cheaper, and addresses the actual cause.\n- NEVER recommend `_forcemerge` under disk or heap pressure.\n  Force-merge temporarily doubles segment file size during the merge.\n- NEVER initiate an in-place version upgrade when the cluster is red\n  or has `JVMHeapPressure > 75%`. Validation will fail and roll back.\n- NEVER delete snapshots manually to free space. Manual S3 deletes\n  from the snapshot bucket corrupt the repository.\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n→ Pre-flight safety gates moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\n\n## Remediation guidance\n\n### For DISK_WATERMARK_FLOOD\nFree disk below 85% by deleting or closing old indices; verify the\nblock auto-clears within 5 minutes; force-clear via\n`PUT _all\u002F_settings {\"index.blocks.read_only_allow_delete\": null}` if\nneeded; attach an ISM policy to roll over and delete future indices.\n\n### For DISK_WATERMARK_HIGH\nFree disk below 85% (cluster continues relocating until then); add\ndata nodes if pressure is from intended growth; reduce replica count\nif replicas are the cause.\n\n### For JVM_HEAP_PRESSURE \u002F JVM_OOM\nClose indices not actively queried; reduce replica count temporarily;\ndisable fielddata on text fields; migrate cold indices to UltraWarm;\nscale the instance class up to raise heap (capped at 32 GB).\n\n### For THREAD_POOL_SEARCH \u002F THREAD_POOL_WRITE\nFor search: tune slow queries (Step 9); add data nodes. For write:\nreduce bulk batch size; raise `index.refresh_interval`; add data nodes.\n\n### For SHARD_ALLOCATION\nRead the first decider in `_cluster\u002Fallocation\u002Fexplain`; free disk,\nadd nodes, or fix allocation filters. Raise\n`cluster.max_shards_per_node` if the cap is the binding constraint\n(deferred fix).\n\n### For CIRCUIT_BREAKER_*\nIdentify the inner breaker (parent wraps the others). For fielddata:\ndisable fielddata on the field. For request: rewrite the aggregation\n(reduce cardinality, paginate). For parent: fix the inner breaker.\n\n### For MAPPING_EXPLOSION\nSet `dynamic: false` or `strict` on the offending subtree; raise\n`index.mapping.total_fields.limit` as a short-term deferral; flatten\nthe offending subtree into a single text field.\n\n### For SNAPSHOT_BLOCKING_DELETE\nPoll `_snapshot\u002F_status` until no snapshots are IN_PROGRESS; delete\nthe index after the snapshot completes; for immediate deletion,\ncancel the snapshot explicitly via\n`DELETE \u002F_snapshot\u002F\u003Crepo>\u002F\u003Csnapshot>` and document it.\n\n### For UPGRADE_ROLLBACK\nRead the validation failure from `describe-domain`\n`ChangeProgressDetails` and the application logs; fix the trigger\n(deprecated APIs, incompatible mappings, cluster health red);\nre-initiate after the cluster is green and heap \u003C 75%.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — Step-0 expert knowledge, extended senior-engineer behaviours, heavy query shapes, mapping\u002Fsnapshot\u002Frollback detail\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — all layer probe command blocks, pre-flight gather CLI, pre-flight safety gates\n- [references\u002Fworked-examples.md](references\u002Fworked-examples.md) — malformed-input INSUFFICIENT_DATA output example\n- [references\u002Fdisk-watermark-and-jvm-heap-reference.md](references\u002Fdisk-watermark-and-jvm-heap-reference.md) — disk watermark + JVM heap detail — extended with why-disk-fills root-cause catalog\n- [references\u002Fshard-allocation-and-threadpool-reference.md](references\u002Fshard-allocation-and-threadpool-reference.md) — shard allocation + thread pool detail — extended with decider-to-fix table\n\n## Domain\n\nAWS CloudOps \u002F Analytics — OpenSearch Service Managed Clusters,\nCluster Health Diagnostics, JVM Pressure Analysis, Shard Allocation\nDecoders, Disk Watermark Recovery, Circuit Breaker Triage, Index\nLifecycle Management, Snapshot Lifecycle, In-place Version Upgrades.\n\n## AWS documentation\n\n- **Amazon OpenSearch Service Developer Guide — Cluster health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmonitoring-cloudwatch.html\n- **Disk-based allocation** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fsize-your-clusters.html\n- **JVM heap pressure and OOM** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fhandling-errors.html\n- **Index State Management** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fism.html\n- **UltraWarm and cold storage** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fultrawarm.html\n- **Snapshots** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-snapshots.html\n- **In-place upgrades** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fversion-maturity.html\n- **Circuit breakers** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fcircuit-breaker.html\n- **CloudWatch metrics for OpenSearch** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fopensearch-service\u002Flatest\u002Fdeveloperguide\u002Fmanagedomains-cloudwatch-metrics.html\n- **AWS Health** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fhealth\u002Flatest\u002Fug\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":44},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"requires_llm":37,"verdict_shape":38,"when_not_to_use":39,"lifecycle_status":40,"invocation_schema":41,"supports_pipeline":37,"invocation_example":42,"activation_triggers":43},"opensearch, analytics, troubleshooting, cluster-health, disk-watermark, jvm-heap, thread-pool, shard-allocation, circuit-breaker","2","Jacky Chan — AWS Community Builder","aws-cloudops","Analytics","0.1.0","OpenSearch, Elasticsearch, ClusterBlockException, disk watermark, flood stage, JVM heap pressure, old gen GC, OutOfMemoryError, thread pool rejection, search queue, write queue, unassigned shards, cluster red, cluster yellow, split-brain, slow log, mapping explosion, circuit breaker, parent circuit breaker, fielddata circuit breaker, index deletion during snapshot, cold node, hot node, UltraWarm, migration failure, upgrade rollback, troubleshooting","troubleshoot","high","false","capability","Diagnosing an Amazon OpenSearch Service cluster incident — ClusterBlockException (read-only block, write block), cluster status red or yellow, JVM heap pressure alarms, search or write thread-pool rejections, unassigned shards, shard allocation failures, circuit breaker trips (parent \u002F fielddata \u002F request), slow-query investigations, mapping explosion (too many fields), index deletion blocked by an in-progress snapshot, cold-to-hot storage migration failures, an in-place upgrade rollback, or a split-brain event. Use whenever the symptom is cluster-wide (not a single index mapping question) and the operator needs the failing subsystem named with positive evidence.","true","ROOT_CAUSE_IDENTIFIED | INSUFFICIENT_DATA","Index mapping design or analyzer tuning (use the OpenSearch _mapping API and the index mapping reference), application-side query authoring (use the search DSL and slow logs), OpenSearch Serverless collection incidents (use a Serverless-specific skill — this skill targets managed OpenSearch Service domains only), VPC endpoint posture audits for the OpenSearch domain (use ec2-security-group-auditor), or IAM fine-grained-access-control user\u002Frole provisioning (use iam-least-privilege-advisor). This skill diagnoses cluster-health incidents; it does not design mappings or audit steady-state access posture.","active","Input: either (a) a symptom description (error message from a client, observed cluster status, an alarm name), optionally paired with the _cluster\u002Fhealth output, _cat\u002Fshards output, and recent CloudWatch metrics, OR (b) a DomainName plus caller context (region, observed error) for live-account diagnosis. Output: a deterministic TARGET \u002F VERDICT \u002F ROOT_CAUSE \u002F LAYER \u002F EVIDENCE \u002F REMEDIATION block where VERDICT ∈ {ROOT_CAUSE_IDENTIFIED, INSUFFICIENT_DATA} and LAYER ∈ {DISK_WATERMARK_FLOOD, DISK_WATERMARK_HIGH, JVM_HEAP_PRESSURE, JVM_OOM, THREAD_POOL_SEARCH, THREAD_POOL_WRITE, SHARD_ALLOCATION, CLUSTER_YELLOW, CLUSTER_RED, SPLIT_BRAIN, SLOW_QUERY, MAPPING_EXPLOSION, CIRCUIT_BREAKER_PARENT, CIRCUIT_BREAKER_FIELDDATA, CIRCUIT_BREAKER_REQUEST, SNAPSHOT_BLOCKING_DELETE, COLD_HOT_MIGRATION, UPGRADE_ROLLBACK, UNKNOWN}.","# Minimal valid input (offline symptom classification):\nSymptom: \"OpenSearch domain prod-logs-cluster returns\nClusterBlockException: blocked by: [FORBIDDEN\u002F12\u002Findex read-only \u002F delete\nadmin api];\" the cluster status is yellow and writes are failing.\nDomainName: prod-logs-cluster\nEngineVersion: OpenSearch_2.13\nClusterStatus: yellow\nHotDataNodes: 3 (r6g.large.search)\nMasterNodes: 3\nEBSVolumeSize: 100 GB per node\nLastCloudWatchAlarm: ClusterIndexWritesBlocked > 0 for 12 minutes","OpenSearch ClusterBlockException, OpenSearch cluster red, OpenSearch cluster yellow, OpenSearch disk watermark, OpenSearch flood stage disk.watermark.flood, OpenSearch JVM heap pressure, OpenSearch OutOfMemoryError, OpenSearch old gen GC, OpenSearch thread pool rejected, OpenSearch search queue rejected, OpenSearch write queue rejected, OpenSearch unassigned shards, OpenSearch shard allocation failed, OpenSearch circuit breaker, OpenSearch parent breaker tripped, OpenSearch fielddata circuit breaker, OpenSearch mapping explosion, OpenSearch too many fields, OpenSearch slow query, OpenSearch slow log, OpenSearch index delete during snapshot, OpenSearch snapshot in progress, OpenSearch UltraWarm migration failed, OpenSearch cold node to hot node, OpenSearch upgrade rollback, OpenSearch split-brain, troubleshoot OpenSearch cluster","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline symptom classification works from pasted error messages and cluster health output. Live-account diagnosis uses aws opensearch describe-domain, describe-domain-config, list-domain-names, aws es describe-elasticsearch-domain (legacy), aws cloudwatch get-metric-statistics on the AWS\u002FES namespace, aws s3 ls for snapshot repositories, the _cluster\u002Fhealth, _cat\u002Fshards, _cat\u002Fallocation, _cat\u002Fthread_pool...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fopensearch-cluster-troubleshooter",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill opensearch-cluster-troubleshooter",{"tool":59,"command":60},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill opensearch-cluster-troubleshooter",{"tool":62,"command":63},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill opensearch-cluster-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002FSKILL.md",true,[67,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",13622,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fbaselines\u002Fcircuit-breaker-fielddata.md",414,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fbaselines\u002Fcircuit-breaker-fielddata.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fbaselines\u002Fcluster-block-disk-watermark-flood.md",459,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fbaselines\u002Fcluster-block-disk-watermark-flood.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"evals\u002Fbaselines\u002Fjvm-heap-old-gen-gc-storm.md",403,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fbaselines\u002Fjvm-heap-old-gen-gc-storm.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"evals\u002Fbaselines\u002Fsearch-thread-pool-rejection.md",399,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fbaselines\u002Fsearch-thread-pool-rejection.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"evals\u002Fbaselines\u002Fshard-allocation-unassigned-red.md",413,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fbaselines\u002Fshard-allocation-unassigned-red.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"evals\u002Feval_config.yaml",2051,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"evals\u002Fevals.json",5193,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fevals.json",{"path":102,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":103,"sourceHtmlUrl":104},"evals\u002Fprompts\u002Fcircuit-breaker-fielddata.md",1697,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fprompts\u002Fcircuit-breaker-fielddata.md",{"path":106,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":107,"sourceHtmlUrl":108},"evals\u002Fprompts\u002Fcluster-block-disk-watermark-flood.md",1482,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fprompts\u002Fcluster-block-disk-watermark-flood.md",{"path":110,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":111,"sourceHtmlUrl":112},"evals\u002Fprompts\u002Fjvm-heap-old-gen-gc-storm.md",1640,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fprompts\u002Fjvm-heap-old-gen-gc-storm.md",{"path":114,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":115,"sourceHtmlUrl":116},"evals\u002Fprompts\u002Fsearch-thread-pool-rejection.md",1701,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fprompts\u002Fsearch-thread-pool-rejection.md",{"path":118,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":119,"sourceHtmlUrl":120},"evals\u002Fprompts\u002Fshard-allocation-unassigned-red.md",1730,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fevals\u002Fprompts\u002Fshard-allocation-unassigned-red.md",{"path":122,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":123,"sourceHtmlUrl":124},"examples\u002FREADME.md",6967,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fexamples\u002FREADME.md",{"path":126,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fadvanced-patterns.md",5845,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":130,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fdiagnostic-commands.md",5548,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":134,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":135,"sourceHtmlUrl":136},"references\u002Fdisk-watermark-and-jvm-heap-reference.md",9400,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Freferences\u002Fdisk-watermark-and-jvm-heap-reference.md",{"path":138,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":139,"sourceHtmlUrl":140},"references\u002Fshard-allocation-and-threadpool-reference.md",10890,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Freferences\u002Fshard-allocation-and-threadpool-reference.md",{"path":142,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":143,"sourceHtmlUrl":144},"references\u002Fworked-examples.md",941,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Freferences\u002Fworked-examples.md",{"path":146,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":147,"sourceHtmlUrl":148},"skill.usf.yaml",4666,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fopensearch-cluster-troubleshooter\u002Fskill.usf.yaml",[150,157,164,171,178,185],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]