笔者在自己的 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
persistent (重启后设置也会存在) or transient (整个集群重启后会消失的设置). 查看集群状态和每个indices状态.搜索到red的,没用就删除 GET /_cluster/health?level=indices DELETE /.monitoring-kibana-6-2019.07.11/ 查看所有未重分配的的分片,分片要平均到各个节点 GET /_cat/shards?h=index,shard,prirep,state,unassigned.reason |