查看集群运行状态node
GET /_cat/health?v
响应python
1573460861 16:27:41 my-application yellow 1 1 372 372 0 0 371 0 - 50.1%
green:一切都好(集群功能齐全)app
yellow:全部数据都可用,但某些副本还没有分配(集群功能齐全)post
red:-因为某些缘由,某些数据不可用(集群部分起做用)blog
获取集群节点列表索引
GET /_cat/nodes?v
查看索引io
GET /_cat/indices?v
建立一个name为customer的索引class
PUT /customer?pretty GET /_cat/indices?v
post建立,不用指定id集群
POST /customer/doc?pretty { "name": "Jane Doe" }