其他分享
首页 > 其他分享> > 【Elasticsearch 权威指南学习笔记】集群内的原理-集群健康

【Elasticsearch 权威指南学习笔记】集群内的原理-集群健康

作者:互联网

Elasticseach及集群监控信息中包含了很多的统计数据,其中最为重要的一项就是集群健康,它在

status字段中展示为: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