# Unassigned Shards when New Index was created: Cluster Yellow

**URL:** <https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483>\
**Category:** Elasticsearch\
**Created:** [January 19, 2023, 7:40am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483 "2023-01-19T07:40:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpraveenverma](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rpraveenverma](https://discuss.elastic.co/u/rpraveenverma)\
**Post date:** [January 19, 2023, 7:40am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483/1 "2023-01-19T07:40:50Z")

</div>

New Index Creation led to Unassigned Shards and Yellow Cluster State.  
**Context :**  
It happened when relocation for one node was already in progress. Checked explanation for its state. It says :  
Relocation Throttled , reached the limit of incoming shard recoveries.  
"current\_state" : "unassigned",  
"unassigned\_info" : {  
"reason" : "INDEX\_CREATED",  
"at" : "2023-01-18T16:03:40.435Z",  
"last\_allocation\_status" : "no\_attempt"  
},

is it expected Behaviour ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 19, 2023, 8:02am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483/2 "2023-01-19T08:02:19Z")

</div>

Welcome to our community! 😃

What is the output from the [`_cluster/stats?pretty&human` API](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/cluster-stats.html)?  
Can you also provide the full output of `GET _cluster/allocation/explain`.

---

<div class="post-metadata">

**Author:** ![rpraveenverma](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@rpraveenverma](https://discuss.elastic.co/u/rpraveenverma)\
**Post date:** [January 19, 2023, 8:09am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483/3 "2023-01-19T08:09:04Z")

</div>

```auto
_cluster/stats 

{
  "_nodes" : {
    "total" : 5,
    "successful" : 5,
    "failed" : 0
  },
  "timestamp" : 1674115649027,
  "status" : "green",
  "indices" : {
    "count" : 684,
    "shards" : {
      "total" : 6840,
      "primaries" : 3420,
      "replication" : 1.0,
      "index" : {
        "shards" : {
          "min" : 10,
          "max" : 10,
          "avg" : 10.0
        },
        "primaries" : {
          "min" : 5,
          "max" : 5,
          "avg" : 5.0
        },
        "replication" : {
          "min" : 1.0,
          "max" : 1.0,
          "avg" : 1.0
        }
      }
    },
    "docs" : {
      "count" : 2697983230,
      "deleted" : 230170293
    },
    "store" : {
      "size_in_bytes" : 4739618005659
    },
    "fielddata" : {
      "memory_size_in_bytes" : 0,
      "evictions" : 0
    },
    "query_cache" : {
      "memory_size_in_bytes" : 3750347245,
      "total_count" : 18269506365,
      "hit_count" : 6563380406,
      "miss_count" : 11706125959,
      "cache_size" : 1408458,
      "cache_count" : 6881466,
      "evictions" : 5473008
    },
    "completion" : {
      "size_in_bytes" : 0
    },
    "segments" : {
      "count" : 94583,
      "memory_in_bytes" : 17185568921,
      "terms_memory_in_bytes" : 14031391435,
      "stored_fields_memory_in_bytes" : 1364582832,
      "term_vectors_memory_in_bytes" : 0,
      "norms_memory_in_bytes" : 91063104,
      "points_memory_in_bytes" : 951154810,
      "doc_values_memory_in_bytes" : 747376740,
      "index_writer_memory_in_bytes" : 0,
      "version_map_memory_in_bytes" : 0,
      "fixed_bit_set_memory_in_bytes" : 0,
      "max_unsafe_auto_id_timestamp" : -1,
      "file_sizes" : { }
    }
  },
  "nodes" : {
    "count" : {
      "total" : 5,
      "data" : 5,
      "coordinating_only" : 0,
      "master" : 5,
      "ingest" : 5
    },
    "versions" : [
      "6.8.22"
    ],
    "os" : {
      "available_processors" : 80,
      "allocated_processors" : 80,
      "names" : [
        {
          "name" : "Linux",
          "count" : 5
        }
      ],
      "pretty_names" : [
        {
          "pretty_name" : "Ubuntu 20.04.3 LTS",
          "count" : 4
        },
        {
          "pretty_name" : "Ubuntu 18.04.2 LTS",
          "count" : 1
        }
      ],
      "mem" : {
        "total_in_bytes" : 166532775936,
        "free_in_bytes" : 16606953472,
        "used_in_bytes" : 149925822464,
        "free_percent" : 10,
        "used_percent" : 90
      }
    },
    "process" : {
      "cpu" : {
        "percent" : 10
      },
      "open_file_descriptors" : {
        "min" : 550,
        "max" : 6102,
        "avg" : 4905
      }
    },
    "jvm" : {
      "max_uptime_in_millis" : 23209843391,
      "versions" : [
        {
          "version" : "1.8.0_312",
          "vm_name" : "OpenJDK 64-Bit Server VM",
          "vm_version" : "25.312-b07",
          "vm_vendor" : "Private Build",
          "count" : 4
        },
        {
          "version" : "1.8.0_212",
          "vm_name" : "OpenJDK 64-Bit Server VM",
          "vm_version" : "25.212-b03",
          "vm_vendor" : "Oracle Corporation",
          "count" : 1
        }
      ],
      "mem" : {
        "heap_used_in_bytes" : 45718811192,
        "heap_max_in_bytes" : 82700533760
      },
      "threads" : 999
    },
    "fs" : {
      "total_in_bytes" : 9176508006400,
      "free_in_bytes" : 4369979158528,
      "available_in_bytes" : 4369979158528
    },
    "plugins" : [
      {
        "name" : "discovery-ec2",
        "version" : "6.8.22",
        "elasticsearch_version" : "6.8.22",
        "java_version" : "1.8",
        "description" : "The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.",
        "classname" : "org.elasticsearch.discovery.ec2.Ec2DiscoveryPlugin",
        "extended_plugins" : [],
        "has_native_controller" : false
      },
      {
        "name" : "repository-s3",
        "version" : "6.8.22",
        "elasticsearch_version" : "6.8.22",
        "java_version" : "1.8",
        "description" : "The S3 repository plugin adds S3 repositories",
        "classname" : "org.elasticsearch.repositories.s3.S3RepositoryPlugin",
        "extended_plugins" : [],
        "has_native_controller" : false
      }
    ],
    "network_types" : {
      "transport_types" : {
        "security4" : 5
      },
      "http_types" : {
        "security4" : 5
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 19, 2023, 9:32am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483/4 "2023-01-19T09:32:54Z")

</div>

A few things;

1. You're running a very old version. 6.8 is [EOL](https://www.elastic.co/support/eol) and no longer supported so please upgrade.
2. You are over sharded, you have 1,368 per node which is way too many and likely the root cause of your issue.

---

<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:** [February 16, 2023, 9:33am UTC](https://discuss.elastic.co/t/unassigned-shards-when-new-index-was-created-cluster-yellow/323483/5 "2023-02-16T09:33:10Z")

</div>

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