我有一个带有2个节点的弹性集群,每个节点都配置为充当数据节点和主节点。
群集配置:
index.number_of_shards: 5
index.number_of_replicas: 0
分片分布在两个节点上,如下所示:
node.ixca_cm_vmops15 : 2 3
node.ixca_cm_vmops16 : 0 1 4
我做了GET /_cat/shards
并获得了以下内容:
p4_search 2 p STARTED 6251210 104.1gb 10.200.144.76 node.ixca_cm_vmops15
p4_search 0 p STARTED 5413272 93.8gb 10.200.144.78 node.ixca_cm_vmops16
p4_search 3 p STARTED 10.200.144.76 node.ixca_cm_vmops15
p4_search 1 p STARTED 6205783 103.5gb 10.200.144.78 node.ixca_cm_vmops16
p4_search 4 p STARTED 6247744 104.8gb 10.200.144.78 node.ixca_cm_vmops16
群集运行状况为绿色。
/_cluster/health?pretty=1
{
"cluster_name" : "p4_cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 2,
"number_of_data_nodes" : 2,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
为什么shard 3
上的node.ixca_cm_vmops15
没有显示文档计数和分片大小?