Elasticsearch 記錄

查看集羣運行狀態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"
}  
相關文章
相關標籤/搜索