Please enable Javascript to view the contents

Elasticsearch troubleshooting

 ·  ☕ 1 分钟

处理 Red 状态的 ES 索引

GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state
1
2
ops-pod-loggie-2026.06.11   0     p      UNASSIGNED    NODE_LEFT
ops-pod-loggie-2026.06.11   0     r      UNASSIGNED    ALLOCATION_FAILED

尝试重新分配

1
POST _cluster/reroute?retry_failed=true

或者直接删除

1
DELETE ops-pod-loggie-2026.06.11

微信公众号
作者
微信公众号