但是因为我的托管在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