active_primary_shards:显示活跃主分片的数量; 主分片是负责写操作。 active_shards:显示活跃分片的数量; 这些分片可用于搜索。 relocating_shards:这显示了从一个节点重新定位或迁移到另一个节点的分片数量——这主要是由于集群节点平衡。 initializing_shards:显示处于初始化状态的分片数量。 初始化过程在分片启动时完成。
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...
{"cluster_name":"testcluster",#集群名称"status":"yellow",#集群健康状态"timed_out":false,#是否超时"number_of_nodes":1,#集群节点数"number_of_data_nodes":1,#集群数据节点数"active_primary_shards":1,#活跃主分片数"active_shards":1,#活跃分片数"relocating_shards":0,#正在搬迁分片数"initializin...
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、搜索性能维度:请求率和延迟 ...
标准很简单:* status:集群状态为 Green* load:集群 load>30节点不超过7个;load>50的节点不能超过3个(基于日常集群情况)2. 判断 relocating shards count:* 哪些节点迁移完成:如有,则统计数量* 目前在迁移的 shard 数量如果有节点迁移完成,且正在迁移的 shard 数量在40以内,可以进行新节点批次迁移,否则...
此时通过/_cluster/health检查集群,因为并没有冗余或是需要平衡的分片,relocating_shards(重定位/转移分片)为0;根据机器性能和es配置情况initializing_shards 、 unassigned_shards和任务数会有差别。 同时/_cat/indices中会存在red或yellow索引,/_cat/shards存在UNASSIGNED分片。 关于UNASSIGNED分片,原因有下。 curl XGET...