Elasticsearch recipes
- Flush an indexIndex Lifecycle
- Merge index segments (force merge)Index Lifecycle
- Roll over via an aliasIndex Lifecycle
- Change the refresh intervalIndex Lifecycle
- Change the replica countIndex Lifecycle
- Open or close an indexIndex Lifecycle
- Add a node to the clusterCluster/Node
- Drain a node (decommission)Cluster/Node
- Move a shard manually (reroute)Cluster/Node
- Enable or disable shard allocationCluster/Node
- Change a cluster settingCluster/Node
- Register a snapshot repositorySnapshot
- Take a snapshotSnapshot
- Restore from a snapshotSnapshot
- Clear the cacheMaintenance
- View pending cluster tasksMaintenance
- Get a hot threads analysisMaintenance
- View shard distributionMaintenance
- Find why a shard is unassignedMaintenance
- View cluster healthMaintenance
- Manually refresh an indexIndex Lifecycle
- Red/yellow cluster triage flow (which index, which shard, why)Cluster/Node
- Reallocate shards that hit the retry limit (reroute retry_failed)Cluster/Node
- Allocate a lost primary shard as a last resort (allocate_stale_primary)Cluster/Node
- Manage disk watermarks and remove the flood-stage write blockCluster/Node
- Rolling restart / rolling upgrade (node by node, without unnecessary shard moves)Cluster/Node
- Audit shard sizes and shard count (oversharding / oversized shard detection)Maintenance
- Shrink an index with too many shardsIndex Lifecycle
- Define an ILM policy, attach it via a template and bootstrap the rollover chainIndex Lifecycle
- Diagnose a stuck ILM step and retry it (_ilm/explain, _ilm/retry)Index Lifecycle
- Build an index template from component templates and simulate the resultIndex Lifecycle
- Change a mapping with zero downtime (reindex + atomic alias switch)Index Lifecycle
- Find, cancel or throttle long-running search and reindex tasksMaintenance
- Enable the search and indexing slow log (per-index thresholds)Performance
- Diagnose 429 rejections, heap and circuit breaker pressurePerformance
- Automate snapshots and retention with SLM, monitor snapshot progressSnapshot
- Create a role and native user, change the password, issue an API keySecurity