Rahul Ravichandran
Rahul Ravichandran

Reputation: 27

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" : "********************"
  },

Upvotes: 1

Views: 332

Answers (1)

Amit
Amit

Reputation: 32386

Looks like you are using spot instances in your cluster and cause for this is that nodes in your AWS is not stable as shown clearly in the unassigned_info

"unassigned_info" : {
    "reason" : "NODE_LEFT",
    "at" : "2021-01-06T13:15:38.721Z",
    "details" : "node_left [**************]",
    "last_allocation_status" : "no_attempt"
  },

I would suggest chaning the instance types if you are using ec2 spot instances and check why nodes are getting disconnected in your cluster with AWS support.

Upvotes: 1

Related Questions