一、检查集群健康:_cluster API

_cluster API

1. 集群层

GET _cluster/health
GET _cluster/health?level=cluster

上面两个等价

2. 分片层

GET _cluster/health?level=shards

索引层>指定索引-分片状态
GET _cluster/health/hamlet?level=shards

3. 索引层

所有索引
GET _cluster/health?level=indices
索引层>指定索引-索引状态
GET _cluster/health/hamlet?level=indices

二、_cat API

查看status=yellow的索引
GET _cat/indices?health=yellow

...待续


丰木
325 声望21 粉丝

遇见超乎想象的自己!