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节点...
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...
active_primary_shards:显示活跃主分片的数量; 主分片是负责写操作。 active_shards:显示活跃分片的数量; 这些分片可用于搜索。 relocating_shards:这显示了从一个节点重新定位或迁移到另一个节点的分片数量——这主要是由于集群节点平衡。 initializing_shards:显示处于初始化状态的分片数量。 初始化过程在分片启动时完成。
,集群的健康状态status,还可以了解到集群当前有多少节点number_of_nodes,多少个数据节点number_of_data_nodes,有多少个主分片active_primary_shards,以及正在搬迁中的分片relocating_shards、初始化中的分片initializing_shards,还未正常分配的分片unassigned_shards等信息。如果集群是非green状态,我们还可以通过active_shards_...
标准很简单:* status:集群状态为 Green* load:集群 load>30节点不超过7个;load>50的节点不能超过3个(基于日常集群情况)2. 判断 relocating shards count:* 哪些节点迁移完成:如有,则统计数量* 目前在迁移的 shard 数量如果有节点迁移完成,且正在迁移的 shard 数量在40以内,可以进行新节点批次迁移,否则...
ConcurrentRebalanceAllocationDecider定义了Rebalance策略,检查系统动态配置”cluster.routing.allocation.cluster_concurrent_rebalance”,表示集群同时允许进行rebalance操作的并发数量,默认是2。通过检查RoutingNodes类中维护的relocatingShards计数器,看是否超过系统配置的并发数,超过则不允许执行Rebalance操作。
"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则...
Shards:活动分片计数。集群中活动分片的数量。 Relocating Shards:重定位分片。由于节点丢失而移动的分片计数。 Initializing Shards:初始化分片。由于添加索引而初始化的分片计数。 Unassigned Shards。未分配的分片。尚未创建或分配副本的分片计数。 2、搜索性能维度:请求率和延迟 ...
可通过API查询集群健康状况及分片状态观察是否所有分片正常GET _cluster/health注意:若relocating_shards不为0时说明仍有分片正在重平衡,即使status为green也可能出现主分片重平衡情况 GET _cat/shards?v 确认分片状态是否为STARTED 二、重平衡优化配置影响重平衡速度 节点重启触发了ES集群的重平衡,如果没有对默认的重...