AWS Elasticsearch 经常进入黄色状态
AWS Elasticsearch frequently getting into yellow state
- 我有 AWS Elasticsearch 运行 3 个主节点 (C4.large) 和 10 个
数据节点(C5.large)。最近我经常遇到我的
域在 30 分钟左右进入黄色状态,然后我
什么都不做它变成绿色。
- 当我使用查询时
GET /_cluster/allocation/explain?pretty
这就是我所看到的
{
"index" : "lgst-",
"shard" : 4,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "NODE_LEFT",
"at" : "2021-01-06T13:15:38.721Z",
"details" : "node_left [**************]",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "yes",
"allocate_explanation" : "can allocate the shard",
"target_node" : {
"id" : "****************",
"name" : "********************"
},
- 我不明白这是什么意思,我该如何克服它。如有任何帮助,我们将不胜感激。
看起来您正在集群中使用 spot 实例,原因是您的 AWS 中的节点不稳定,如 unassigned_info
中清楚显示的那样
"unassigned_info" : {
"reason" : "NODE_LEFT",
"at" : "2021-01-06T13:15:38.721Z",
"details" : "node_left [**************]",
"last_allocation_status" : "no_attempt"
},
如果您正在使用 ec2 spot instances,我建议更改实例类型,并使用 AWS 支持检查集群中节点断开连接的原因。
- 我有 AWS Elasticsearch 运行 3 个主节点 (C4.large) 和 10 个 数据节点(C5.large)。最近我经常遇到我的 域在 30 分钟左右进入黄色状态,然后我 什么都不做它变成绿色。
- 当我使用查询时
GET /_cluster/allocation/explain?pretty
这就是我所看到的
{
"index" : "lgst-",
"shard" : 4,
"primary" : false,
"current_state" : "unassigned",
"unassigned_info" : {
"reason" : "NODE_LEFT",
"at" : "2021-01-06T13:15:38.721Z",
"details" : "node_left [**************]",
"last_allocation_status" : "no_attempt"
},
"can_allocate" : "yes",
"allocate_explanation" : "can allocate the shard",
"target_node" : {
"id" : "****************",
"name" : "********************"
},
- 我不明白这是什么意思,我该如何克服它。如有任何帮助,我们将不胜感激。
看起来您正在集群中使用 spot 实例,原因是您的 AWS 中的节点不稳定,如 unassigned_info
"unassigned_info" : {
"reason" : "NODE_LEFT",
"at" : "2021-01-06T13:15:38.721Z",
"details" : "node_left [**************]",
"last_allocation_status" : "no_attempt"
},
如果您正在使用 ec2 spot instances,我建议更改实例类型,并使用 AWS 支持检查集群中节点断开连接的原因。