AWS Elasticsearch经常进入黄色状态


  • 我有运行AWS Elasticsearch的3个主节点(C4.lage(和10个数据节点(C5.大(。最近我经常遇到域名进入黄色状态大约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点实例,我建议更改实例类型,并检查为什么在AWS支持下集群中的节点断开连接。

最新更新