【发布时间】:2015-04-23 14:39:28
【问题描述】:
我将数据上传到我的单节点集群并将索引命名为“gequest”。
当我从http://localhost:9200/_cluster/stats?human&pretty 获取时,我得到:
"cluster_name" : "elasticsearch",
"status" : "yellow",
"indices" : {
"count" : 1,
"shards" : {
"total" : 5,
"primaries" : 5,
"replication" : 0.0,
"index" : {
"shards" : {
"min" : 5,
"max" : 5,
"avg" : 5.0
},
"primaries" : {
"min" : 5,
"max" : 5,
"avg" : 5.0
},
"replication" : {
"min" : 0.0,
"max" : 0.0,
"avg" : 0.0
}
}
}
当我在 http://localhost:9200/_stats?pretty=true 上做 GET 时
"_shards" : {
"total" : 10,
"successful" : 5,
"failed" : 0
}
为什么两个报告中的分片总数不一致?为什么统计 API 中的总分片为 10。如何追踪其他 5 个?
【问题讨论】:
标签: elasticsearch lucene