curl -s "$OS/_cat/shards/logs-prod-2026.08?v&h=index,shard,prirep,state,docs,store,node"Scale OpenSearch shards online without spiking search latency
A runbook for fixing hot shards with controlled migration, aliases, parity checks, and a clean rollback path.
Learn how to diagnose hot shards, decide whether primary shard scaling is justified, and run an online OpenSearch migration without losing writes or breaking searches.
Created: August 19, 2026
Published: August 19, 2026
Linux
Diagnose and migrate from a terminal with curl, jq, and before/after metric snapshots.
curljqTLS/API access to the OpenSearch cluster
curl -s "$OS/_tasks?actions=*reindex&detailed=true" | jq .curl -s -XPOST "$OS/_aliases" -H "content-type: application/json" -d @alias-cutover.jsonContent locked
This guide requires both steps before full content is available.
- ○Click “Like” on this guide.
- ○Share on WhatsApp, X, LinkedIn, or copy the link.
Access is automatically unlocked as soon as both steps are completed.