每个节点有多少分片?
How many shards per node?
如何获取每个具有特定 ID 的节点存在多少个分片的信息?我试图在官方文档中找到这些信息。但是不能。一种可能的情况是通过此请求获取有关分片的信息并按节点分组:
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
如果您有任何想法或想法,请与我分享。
您需要使用 _cat/allocation
API
GET /_cat/allocation/1?v
您将获得指定节点的分片数量:
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
如何获取每个具有特定 ID 的节点存在多少个分片的信息?我试图在官方文档中找到这些信息。但是不能。一种可能的情况是通过此请求获取有关分片的信息并按节点分组:
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
如果您有任何想法或想法,请与我分享。
您需要使用 _cat/allocation
API
GET /_cat/allocation/1?v
您将获得指定节点的分片数量:
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