wait_for_status:可以用来指定等待集群的状态,参数值有:green,yellow,red。 当我们使用默认API执行后,会得到以下返回信息: 返回体解读: 代码语言:json 复制 {"cluster_name":"testcluster",#集群名称"status":"yellow",#集群健康状态"timed_out":false,#是否超时"number_of_nodes":1,#集群节点数"number_of_d...
当集群存在未分配的主索引分片,集群状态会为 RED。该情况影响索引读写,需要重点关注。 当集群所有主索引分片都是已分配的,但是存在未分配的副本索引分片,集群状态则会 YELLOW。该情况不影响索引读写,一般会自动恢复。 查看集群状态 使用kibana 开发工具,查看集群状态: GET /_cluster/health 这里可以看到,当前集群状态...
[root@elk-node03 ~]# curl -X GET 'http://10.0.8.47:9200/_cluster/health?pretty' { "cluster_name":"kevin-elk",#集群名称 "status":"green",#为 green 则代表健康没问题,如果是 yellow 或者 red 则是集群有问题 "timed_out":false,#是否有超时 "number_of_nodes": 3,#集群中的节点数量 "nu...
这个参数会让cluster-healthAPI 在我们的集群信息里添加一个索引清单,以及有关每个索引的细节(状态、分片数、未分配分片数等等): { "cluster_name": "elasticsearch_zach", "status": "red", "timed_out": false, "number_of_nodes": 8, "number_of_data_nodes": 8, "active_primary_shards": 90, "a...
由于create index api 创建索引导致,索引创建过程中,把索引的全部分片分配完毕需要一个过程,在全部分片分配完毕之前,该索引会处于短暂的 RED 或 YELLOW 状态。因此监控系统如果发现集群 RED,不一定代表出现了故障。 CLUSTER_RECOVERED 集群完全重启时,所有分片都被标记为未分配状态,因此在集群完全重启时的启动阶段,reason...
此时执行查询虽然部分数据仍然可以查到,但实际上已经影响到索引读写,需要重点关注。这种情况Elasticsearch集群至少一个主分片(以及它的全部副本)都在缺失中。这意味着索引已缺少数据,搜索只能返回部分数据,而分配到这个分片上的请求都返回异常。 查看集群状态 使用kibana开发工具,查看集群状态: GET/_cluster/health...
Elasticsearch 是一个分布式的搜索和分析引擎,广泛用于全文搜索、结构化搜索、分析报告等场景。在 Elasticsearch 中,集群的健康状态是一个重要的指标,它反映了整个集群的状态是否良好,以及数据的可用性和稳定性。 Elasticsearch 集群的健康状态可以通过_cluster/healthAPI 来查询,返回的结果中包含了一个status字段,这个字段...
Running /_cluster/health API returning the following result: Raw sh-4.2$ ${curl_get} $ES_URL/_cluster/health?pretty=true { "cluster_name" : "logging-es", "status" : "red", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 2, "active_primary_shards" : ...
序号 指标 类型 详情 1 elasticsearch_cluster_health_status gauge 集群状态,green( 所有的主分片和副本分片都正常运行)、yellow(所有的主分片都正常运行,但不是所有的副本分片都正常运行)red(有主分片没能正常运行)值为1的即为对应状态 2 elasticsearch_cluster_health_number_of_data_nodes gauge node节点的数量 ...
集群健康:是集群监控中最重要的信息,有三种状态green、yellow或red。 GET /_cluster/health cluster_name:集群命名 status:集群状态。green:主要分片和复制分片都可用;yellow:主要分片可用,不是所有复制分片都可用;red:不是所有的主分片都可用 elasticsearch集群内的原理 ...