【Elasticsearch 权威指南学习笔记】集群内的原理-集群健康
作者:互联网
Elasticseach及集群监控信息中包含了很多的统计数据,其中最为重要的一项就是集群健康,它在
status字段中展示为:green、yellow或red。
- green,所有的主分片和副分片都正常运行。
- yellow,所有主分片都正常运行,但不是所有的副分片都正常运行
- red,有主分片没能正常运行
1.请求方式:Get
2.请求URL:
http://127.0.0.1:9200/_cluster/health
3.响应信息:
{
"cluster_name": "elasticsearch",
"status": "yellow",
"timed_out": false,
"number_of_nodes": 1,
"number_of_data_nodes": 1,
"active_primary_shards": 22,
"active_shards": 22,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 9,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 70.96774193548387
}
标签:shards,笔记,number,Elasticsearch,yellow,分片,active,集群 来源: https://blog.csdn.net/qq2942713658/article/details/118435021