方案一 找到状态为 red 的索引 curl -X GET "http://172.xxx.xxx.174:9288/_cat/indices?v=" red open index 5 1 3058268 97588 2.6gb 1.3gb 状态为 red 是无法对外提供服务的,说明有主节点没有分配到对应的机子上. 找到 UNASSIGNED 节点 _cat/shards 能够看到节点的分配情况 curl -X GET "http://172.xxx.xxx.174:9288…
笔者在自己的 ubuntu 服务器上使用 GET /_cat/health?v 命令时,返回值如下所示 可以看到集群状态为 yellow,这是什么意思呢?原来在 es 的集群状态中,有三种情况,官网描述如下. RED: Some or all of (primary) shards are not ready. YELLOW: Elasticsearch has allocated all of the primary shards, but some/all of the replicas h…