# Red cluster status - nodes restarting and unallocated shards

**URL:** <https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [August 5, 2019, 11:24am UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781 "2019-08-05T11:24:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngg971](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@ngg971](https://discuss.elastic.co/u/ngg971)\
**Post date:** [August 5, 2019, 11:24am UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781/1 "2019-08-05T11:24:26Z")

</div>

Hi,

A few days ago, my Elastic cluster status turned to red for reasons that are unclear to me. I received several emails over the last 48 hours saying "We restarted a node in your cluster after it ran out of memory.", but open checking the memory allocation in my nodes, I didn't see anything that looked critical (the memory usage on one of them is high, but not critically so). I assume the shards went unallocated because of the node restarts?

I've attached a screenshot of my monitoring dashboard.

 ![cluster_status_dvlp](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5af1cad3f5c2f8fdf7367e1d820cb9436d562b41.png)

I ran  
`GET /_cluster/allocation/explain`

and got the following response:

```auto
{
  "index" : "dvlp-repeat-prescriptions-2018.06.28",
  "shard" : 3,
  "primary" : false,
  "current_state" : "unassigned",
  "unassigned_info" : {
    "reason" : "NODE_LEFT",
    "at" : "2019-08-05T08:37:58.421Z",
    "details" : "node_left [jtfGNFgOTS2OK0-A2Bee9w]",
    "last_allocation_status" : "no_attempt"
  },
  "can_allocate" : "no",
  "allocate_explanation" : "cannot allocate because allocation is not permitted to any of the nodes",
  "node_allocation_decisions" : [
    {
      "node_id" : -REDACTED-,
      "node_name" : "instance-0000000012",
      "transport_address" : -REDACTED-,
      "node_attributes" : {
        "logical_availability_zone" : "zone-1",
        "server_name" : -REDACTED-,
        "availability_zone" : "eu-west-1c",
        "xpack.installed" : "true",
        "region" : "eu-west-1",
        "instance_configuration" : "aws.highio.classic"
      },
      "node_decision" : "no",
      "deciders" : [
        {
          "decider" : "same_shard",
          "decision" : "NO",
          "explanation" : "the shard cannot be allocated to the same node on which a copy of the shard already exists [[dvlp-repeat-prescriptions-2018.06.28][3], node[qkfLTYSiQpGTDQgBF8FRuA], [P], s[STARTED], a[id=K8oCkFBOSVm6tVQxlCb62Q]]"
        }
      ]
    }
  ]
}

```

Any ideas of what the underlying problem is? I did set up Index Lifecycle Management for my log indices, could that somehow be tampering with the memory and/or shard allocation?

Thanks,  
Nathanael

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [August 5, 2019, 12:56pm UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781/2 "2019-08-05T12:56:50Z")

</div>

As an Elastic Cloud user with a Platinum licence, your best bet is to contact your support engineer. They will be able to see much more detailed information about what has happened with this cluster and will be able to guide you through bringing it back to health.

---

<div class="post-metadata">

**Author:** ![ngg971](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@ngg971](https://discuss.elastic.co/u/ngg971)\
**Post date:** [August 5, 2019, 1:01pm UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781/3 "2019-08-05T13:01:58Z")

</div>

Ok thank you. I did submit a support request on Friday morning but still haven't heard back. I'll just sit tight then!

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 5, 2019, 1:53pm UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781/4 "2019-08-05T13:53:15Z")

</div>

You have far too many shards given your heap size. I would recommend you reduce this significantly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 2, 2019, 1:53pm UTC](https://discuss.elastic.co/t/red-cluster-status-nodes-restarting-and-unallocated-shards/193781/5 "2019-09-02T13:53:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
