AWS Elasticsearch 经常进入黄色状态

AWS Elasticsearch frequently getting into yellow state

{
  "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 支持检查集群中节点断开连接的原因。