我有3個分片的ES索引。正如你可以看到,幾乎所有的數據都包含在一個碎片,另外兩個沒有什麼太大:Elasticsearch分片大小不均衡
index1 0 p STARTED 650 190.5kb 10.25.242.35 TWO
index1 1 p STARTED 77722991 26.2gb 10.25.242.36 THREE
index1 2 p STARTED 880 334.5kb 10.25.242.34 ONE
這是爲什麼,我該如何改變呢?我找不到文件:(
指標設置中的任何信息:
[~] # curl -XGET 'localhost:9200/index1/_settings?pretty'
{
"index1" : {
"settings" : {
"index" : {
"creation_date" : "1449624574889",
"number_of_shards" : "3",
"uuid" : "QxDOzeG6Qj2BNExZ0z-Drg",
"version" : {
"created" : "1050299"
},
"number_of_replicas" : "0"
}
}
}
}
ES版本是1.5,目前我不能更新
你可能在索引時將文檔路由到那個分片嗎?https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-routing-field.html – micpalmia