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节点...
active_primary_shards:显示活跃主分片的数量; 主分片是负责写操作。 active_shards:显示活跃分片的数量; 这些分片可用于搜索。 relocating_shards:这显示了从一个节点重新定位或迁移到另一个节点的分片数量——这主要是由于集群节点平衡。 initializing_shards:显示处于初始化状态的分片数量。 初始化过程在分片启动时完成。
"active_primary_shards": 931, "active_shards": 931, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 930, "delayed_unassigned_shards": 0, "number_of_pending_tasks": 0, "number_of_in_flight_fetch": 0, "task_max_waiting_in_queue_millis": 0, "active_shards_pe...
标准很简单:* status:集群状态为 Green* load:集群 load>30节点不超过7个;load>50的节点不能超过3个(基于日常集群情况)2. 判断 relocating shards count:* 哪些节点迁移完成:如有,则统计数量* 目前在迁移的 shard 数量如果有节点迁移完成,且正在迁移的 shard 数量在40以内,可以进行新节点批次迁移,否则...
在上面relocating_shards显示的数值为0,表明目前没有shard被重新转移。 方法二 使用以下API检查的专有的节点的状态: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 GET_cat/nodes?v 通过上面的 API 我们得到 node 的名字: 代码语言:javascript 代码运行次数:0 ...
"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, ...
添加exclude_name 后,集群多了很多 relocating shards,此时会出现大量的分片迁移操作,通过_cat/recovery 可以看到期间的分片进行的过程。 白天集群是写入高峰,压力不算小,此时还需要同步数据,会造成 exclude name 对应的节点,因为要大量的迁出数据,会进行大量的磁盘读操作,同时,还有很多分片还在进行当前的写入操作,磁盘...
GET_cluster/health{"cluster_name":"elasticsearch","status":"yellow","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":127,"active_shards":127,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":120,"delayed_unassigned_shards":0,"number...
可通过API查询集群健康状况及分片状态观察是否所有分片正常GET _cluster/health注意:若relocating_shards不为0时说明仍有分片正在重平衡,即使status为green也可能出现主分片重平衡情况 GET _cat/shards?v 确认分片状态是否为STARTED 二、重平衡优化配置影响重平衡速度 节点重启触发了ES集群的重平衡,如果没有对默认的重...