# Very slow cluster, cannot find "\_cluster" index?

**URL:** <https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408>\
**Category:** Elasticsearch\
**Created:** [September 5, 2018, 12:47pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408 "2018-09-05T12:47:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilija](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilija/32/35202_2.png) [@emilija](https://discuss.elastic.co/u/emilija)\
**Post date:** [September 5, 2018, 12:47pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/1 "2018-09-05T12:47:08Z")

</div>

Hi, we have a cluster of 34 nodes running Elastic version 2.2 . The cluster started to behave very weirdly now the shard allocation is very slow and there are "URGENT" pending tasks with over 8 hours in the queue. GET \_cluster/allocation/explain returns that the root cause is that "\_cluster" index is not found.  
{  
"error": {  
"root\_cause": [  
{  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"resource.type": "index\_expression",  
"resource.id": "\_cluster",  
"index": "\_cluster"  
}  
],  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"resource.type": "index\_expression",  
"resource.id": "\_cluster",  
"index": "\_cluster"  
},  
"status": 404  
}  
Could you guys maybe give some pointers as to how to interpret the fact that "\_cluster" index is not found? The logs from master node state that processing of some events time out from time to time or that shards cannot be reallocated to some nodes due to disk threshold. Would prefer to avoid having to restart the whole cluster, if possible.

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [September 5, 2018, 1:03pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/2 "2018-09-05T13:03:00Z")

</div>

> [@emilija](#):
>
> GET \_cluster/allocation/explain

The Cluster Allocation Explain API was released with Elasticsearch 5.0 (see [this link](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cluster-allocation-explain.html)) so the command you tried running is not working in your 2.2 cluster.

---

<div class="post-metadata">

**Author:** ![emilija](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilija/32/35202_2.png) [@emilija](https://discuss.elastic.co/u/emilija)\
**Post date:** [September 5, 2018, 1:50pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/4 "2018-09-05T13:50:37Z")

</div>

Sorry, 0 experience with this and stack overflow said that the version.number is version number. Here's more info.  
"version": {  
"number": "2.2.2",  
"build\_hash": "fcc01dd81f4de6b2852888450ce5a56436fd5852",  
"build\_timestamp": "2016-03-29T08:49:35Z",  
"build\_snapshot": false,  
"lucene\_version": "5.4.1"  
}

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [September 5, 2018, 2:13pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/5 "2018-09-05T14:13:24Z")

</div>

Strange, then you should be able to run the command.

Testing the same call in my 5.6.4 cluster I get an exception too:

```
user@node-04:~$ curl -X GET "localhost:9200/_cluster/allocation/explain?pretty"
{
  "error" : {
    "root_cause" : [
      {
        "type" : "remote_transport_exception",
        "reason" : "[master2][10.xx.xx.xx:9xxx][cluster:monitor/allocation/explain]"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "unable to find any unassigned shards to explain [ClusterAllocationExplainRequest[useAnyUnassignedShard=true,includeYesDecisions?=false]"
  },
  "status" : 400
}

```

This is because there are no unassigned shards in my cluster, but in your situation it should produce a sensible result, and I don't understand why it tries to interpret "\_cluster" as an index name. That is very strange.

---

<div class="post-metadata">

**Author:** ![Bernt\_Rostad](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@Bernt\_Rostad](https://discuss.elastic.co/u/Bernt_Rostad)\
**Post date:** [September 5, 2018, 2:18pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/6 "2018-09-05T14:18:38Z")

</div>

> [@emilija](#):
>
> "lucene\_version": "5.4.1"

Wait a minute. It's Lucene version 5.4.1. So you are running Elasticsearch version 2.2.2.

Then my initial reply still stands, you can't use the Cluster Allocation Explain API prior to Elasticsearch version 5.0.

---

<div class="post-metadata">

**Author:** ![emilija](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilija/32/35202_2.png) [@emilija](https://discuss.elastic.co/u/emilija)\
**Post date:** [September 5, 2018, 2:33pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/7 "2018-09-05T14:33:11Z")

</div>

Yup, posted the answer, read documentation some more (the very basics, honestly). You are right. Thank you. Back to reading and looking through various logs for us 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:** [September 5, 2018, 2:34pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/8 "2018-09-05T14:34:54Z")

</div>

How many indices and shards do you have in the cluster? How much data?

---

<div class="post-metadata">

**Author:** ![emilija](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilija/32/35202_2.png) [@emilija](https://discuss.elastic.co/u/emilija)\
**Post date:** [September 5, 2018, 2:54pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/9 "2018-09-05T14:54:31Z")

</div>

\_cluster/stats says 5776 indices and 42616 shards, store.size\_in\_bytes 21998772983623 (almost 22tb).

---

<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:** [September 5, 2018, 2:58pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/10 "2018-09-05T14:58:48Z")

</div>

That is a lot of shards for that data volume. The average shard size is just around 500MB or so. having a lot of small shards can be very inefficient, so I would recommend reading [this blog post about shards and sharding practices](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster) and then try to reduce this.

---

<div class="post-metadata">

**Author:** ![emilija](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilija/32/35202_2.png) [@emilija](https://discuss.elastic.co/u/emilija)\
**Post date:** [September 5, 2018, 3:01pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/11 "2018-09-05T15:01:19Z")

</div>

Will do. Thank you!

---

<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:** [October 3, 2018, 3:13pm UTC](https://discuss.elastic.co/t/very-slow-cluster-cannot-find-cluster-index/147408/12 "2018-10-03T15:13:14Z")

</div>

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