每个节点有多少个分片? [英] How many shards per node?
本文介绍了每个节点有多少个分片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何获取每个具有特定 ID 的节点存在多少个分片的信息?我试图在官方文档中找到这些信息.但不能.一种可能的情况是通过此请求获取有关分片的信息并按节点分组:
How can I get information how many shards exists per node with specific id? I trying to find this information on the official documentation. But can't. One of the possible scenario it is get information about shards by this request and grouping by nodes:
GET /_cat/shards&v=true
index shard prirep state docs store ip node
people 0 p STARTED 1 4.4kb 172.17.0.2 1
blog 0 p STARTED 1 4.8kb 172.17.0.2 2
micrometer-metrics-2021-05 0 p STARTED 14368 1mb 172.17.0.2 3
如果您有任何想法或想法,请与我分享.
If you have any idea or thought please share with me.
推荐答案
你需要使用_cat/allocation
API
GET /_cat/allocation/1?v
您将获得指定节点的分片数:
And you'll get the number of shards for the specified node:
shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
121 1.3tb 1.3tb 466.4gb 1.8tb 74 10.x.y.z 10.x.y.z 1
这篇关于每个节点有多少个分片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文