我的群集处于黄色状态,因为某些分片未分配.该怎么办?
我尝试设置cluster.routing.allocation.disable_allocation = false所有索引,但我认为这不起作用,因为我使用的是1.1.1版本.
我也尝试重新启动所有机器,但同样的情况发生了.
任何的想法?
编辑:
群集统计:
{
cluster_name: "elasticsearch",
status: "red",
timed_out: false,
number_of_nodes: 5,
number_of_data_nodes: 4,
active_primary_shards: 4689,
active_shards: 4689,
relocating_shards: 0,
initializing_shards: 10,
unassigned_shards: 758
}
Run Code Online (Sandbox Code Playgroud)我在 AWS Elasticsearch 上有一个索引,由于NODE_LEFT. 这是输出_cat/shards
rawindex-2017.07.04 1 p STARTED
rawindex-2017.07.04 3 p UNASSIGNED NODE_LEFT
rawindex-2017.07.04 2 p STARTED
rawindex-2017.07.04 4 p STARTED
rawindex-2017.07.04 0 p STARTED
Run Code Online (Sandbox Code Playgroud)
在正常情况下,使用_clusteror可以很容易地重新分配这些分片_settings。但是,这些是 AWS 不允许的确切 API。我收到以下消息:
{
Message: "Your request: '/_settings' is not allowed."
}
Run Code Online (Sandbox Code Playgroud)
根据对一个非常相似的问题的回答,我可以使用_indexAWS 允许的 API更改索引的设置。但是,它似乎index.routing.allocation.disable_allocation对我正在运行的 Elasticsearch 5.x 无效。我收到以下错误:
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[enweggf][x.x.x.x:9300][indices:admin/settings/update]"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.routing.allocation.disable_allocation] please check that any …Run Code Online (Sandbox Code Playgroud)