active_primary_shards指出你集群中的主分片数量。这是涵盖了所有索引的汇总值。 active_shards是涵盖了所有索引的_所有_分片的汇总值,即包括副本分片。 relocating_shards显示当前正在从一个节点迁往其他节点的分片的数量。通常来说应该是 0,不过在 Elasticsearch 发现集群不太均衡时,该值会上
number_of_data_nodes data节点数 active_primary_shards 活动的主分片 active_shards 所有活动的分片数,包括主分片和副本 relocating_shards 正在发生迁移的分片 initializing_shards 正在初始化的分片 unassigned_shards 没有被分配的分片 delayed_unassigned_shards 延迟未被分配的分片 number_of_pending_tasks master节点...
"relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 0, "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": 100.0#集群分片的可用性百分比,如果为0则...
AI代码解释 {"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":26,"active_shards":26,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":19,"delayed_unassigned_shards":0,"number_of_pendi...
标准很简单:* status:集群状态为 Green* load:集群 load>30节点不超过7个;load>50的节点不能超过3个(基于日常集群情况)2. 判断 relocating shards count:* 哪些节点迁移完成:如有,则统计数量* 目前在迁移的 shard 数量如果有节点迁移完成,且正在迁移的 shard 数量在40以内,可以进行新节点批次迁移,否则...
relocating_shards:这显示了从一个节点重新定位或迁移到另一个节点的分片数量——这主要是由于集群节点平衡。 initializing_shards:显示处于初始化状态的分片数量。 初始化过程在分片启动时完成。 它是激活之前的瞬态状态,由几个步骤组成; 最重要的步骤如下: ...
"active_primary_shards": 0, "active_shards": 0, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 20 }, "sms20181009": { "status":"yellow", "number_of_shards":5, "number_of_replicas":1, "active_primary_shards":5, ...
可通过API查询集群健康状况及分片状态观察是否所有分片正常GET _cluster/health注意:若relocating_shards不为0时说明仍有分片正在重平衡,即使status为green也可能出现主分片重平衡情况 GET _cat/shards?v 确认分片状态是否为STARTED 二、重平衡优化配置影响重平衡速度 节点重启触发了ES集群的重平衡,如果没有对默认的重...
relocating_shards 显示当前正在从一个节点迁往其他节点的分片的数量。通常来说应该是 0,不过在Elasticsearch发现集群不太均衡时,该值会上涨。比如说:添加了一个新节点,或者下线了一个节点。 initializing_shards 显示的是刚刚创建的分片的个数。比如,当你刚创建第一个索引,分片都会短暂的处于 initializing 状态,分片不...
添加exclude_name 后,集群多了很多 relocating shards,此时会出现大量的分片迁移操作,通过_cat/recovery 可以看到期间的分片进行的过程。 白天集群是写入高峰,压力不算小,此时还需要同步数据,会造成 exclude name 对应的节点,因为要大量的迁出数据,会进行大量的磁盘读操作,同时,还有很多分片还在进行当前的写入操作,磁盘...