我有一个由AWS elasticsearch Service管理的Elasticsearch集群。我正在设置一个热-温策略,将超过8天的索引移动到超温存储中。我想将副本减少到0,因为超温节点是由S3支持的,并且说使用超温节点时不需要副本。
我设置了索引状态管理策略,如下所示:
{
"policy_id": "hot_warm_workflow",
"description": "hot-warm workflow - Indices stay hot storage for 8 days and then move to warm storage",
"last_updated_time": 1632847870167,
"schema_version": 1,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "warm",
"conditions": {
"min_index_age": "8d"
}
}
]
},
{
"name": "warm",
"actions": [
{
"retry": {
"count": 5,
"backoff": "exponential",
"delay": "1h"
},
"warm_migration": {}
},
{
"retry": {
"count": 5,
"backoff": "exponential",
"delay": "1h"
},
"replica_count": {
"number_of_replicas": 0
}
}
],
"transitions": []
}
],
"ism_template": null
}索引成功移动到热存储,但当采取下一步操作将副本减少到0时,迁移错误。错误消息如下:
{
"cause": "index [log-1-9-2021] blocked by: [TOO_MANY_REQUESTS/12/index read-only / allow delete (api)];",
"message": "Failed to set number_of_replicas to 0 [index=log-1-9-2021]"
}我认为我没有达到速率限制,因为我只尝试在一个索引上这样做。在超温节点上更改副本大小是否存在问题?我是否需要减少热节点上的副本,然后迁移到温节点?
发布于 2021-09-30 11:03:22
弄清楚了:
由于超温存储是只读的,我认为它在尝试减少温节点中的副本时出错。我更改了热状态操作的顺序,以便减少副本,然后迁移到热存储。
然后,迁移对我起作用了。
https://stackoverflow.com/questions/69377834
复制相似问题