但是因爲我的託管在AWS上,我不準叫/_settings
或/_cluster
所以我怎麼能分配這些碎片?
的錯誤,當我POST
到/_cluster
我越來越:
{
"Message": "Your request: '/_cluster' is not allowed."
}
但是因爲我的託管在AWS上,我不準叫/_settings
或/_cluster
所以我怎麼能分配這些碎片?
的錯誤,當我POST
到/_cluster
我越來越:
{
"Message": "Your request: '/_cluster' is not allowed."
}
默認情況下,每個主碎片創建一個副本碎片因爲你只有一個結點,副本不能分配。
您只需通過number_of_replicas:0
當您創建索引
PUT /my-index
{
"settings" : {
"index" : {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
}
}
如果以後要增加副本碎片的數量,因爲你添加新節點,你可以做這樣的:
PUT /my-index/_settings
{
"index" : {
"number_of_replicas" : 1
}
}
您可能已經爲每個主分片配置了一個副本,並且由於您只有一個節點,因此無法分配副本。 – Val
@Val我對此的理解是有限的,但是如何「修復」這個?解決這個問題的最好方法是什麼? – Jared
你是如何創建你的索引的? – Val