ElasticSearch obtain es cluster information

Reference blog: https://www.cnblogs.com/phpshen/p/8668833.html

es cluster information in some versions will not find out if the certificate has expired, seemingly do not need some versions, it is said to offer a version of the certificate does not need to Download (just use, not confirmed is not true): HTTPS: // the WWW .elastic.co / guide / en / elasticsearch / reference / 7.2 / zip-windows.html

The following experiments based Elasticsearch 7.2.1 version

1. Check the health cluster

GET {{host}}/_cat/health?v

{{Host}} cluster address

Example result:

image

green: each index Shard primary and replica shard active state are
yellow: index primary Shard each state is active, but not the active replica shard portion, in the unavailable state
red: Not all of the primary index shard is the active state, part of the index data is lost

 

2. Check the cluster which indexes have

GET {{host}}/_cat/indices?v

{{Host}} cluster address

Example result:

image

 

 

 

 

 

 


 

Guess you like

Origin www.cnblogs.com/betterwgo/p/11572424.html