elasticsearch cluster health status View

1. Check the health status of the cluster ES

http: // localhost: 9200 / _cluster / health pretty? 
response: 
{ 
  "CLUSTER_NAME": "if2c", 
  "Status": "Yellow", // state cluster traffic lights, green: Healthy, yellow: sub-health, red: sick 
  "TIMED_OUT": to false, 
  "number_of_nodes This is":. 1, // nodes 
  "number_of_data_nodes": 1, // number of nodes in 
  "active_primary_shards": 3, // fractal sheet 3 Index database 
  "active_shards": 3, 
  "relocating_shards": 0, 
  "initializing_shards": 0, 
  "unassigned_shards": is not specified. 3 // node, the copy of the configuration, only one machine deployment will happen 
}

Check the specified index of the health status of the library
HTTP: // localhost: 9200 / _cluster / Health / index_name Pretty?
HTTP: // localhost: 9200 / _cluster / Health / index_name, index_name2 Pretty?

Guess you like

Origin www.cnblogs.com/gavinYang/p/11200196.html