# Does the cluster state size impact performance?

**URL:** https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344
**Category:** Elasticsearch
**Created:** [March 27, 2013, 9:50pm UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344 "2013-03-27T21:50:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)
#### Post date: [March 27, 2013, 9:50pm UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344/1 "2013-03-27T21:50:27Z")

</div>

In my cluster running 0.20.1, the message returned from /\_cluster/state is  
6.8M and growing. Will that cause a problem?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [March 28, 2013, 8:14am UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344/2 "2013-03-28T08:14:37Z")

</div>

Hey,

In short, this not a problem but rather a necessity to keep your cluster  
intact with all its information.

the cluster state contains lots of metadata about all your indices, shards,  
their mappings as the current cluster status. This means, by adding more  
indices the complete cluster state data also grows as more metadata is  
added. The cluster state is also being replicated from the master to all  
other nodes on changes.

In case you are not adding indices or not adding documents with new fields  
(which results in new mapping entries) or you do not add new nodes with  
more shards you might want to elaborate what is causing this though.

Hope it helps..

--Alex

On Wed, Mar 27, 2013 at 10:50 PM, Telvis Calhoun Jr. [telvis07@gmail.com](mailto:telvis07@gmail.com)wrote:

> In my cluster running 0.20.1, the message returned from /\_cluster/state is  
> 6.8M and growing. Will that cause a problem?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Telvis\_Calhoun\_Jr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/telvis_calhoun_jr/32/1792_2.png) [@Telvis\_Calhoun\_Jr](https://discuss.elastic.co/u/Telvis_Calhoun_Jr)
#### Post date: [March 28, 2013, 3:34pm UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344/3 "2013-03-28T15:34:48Z")

</div>

I am adding indices and each index has 30+ type mappings and each  
mapping has 10+ fields. During training, one of the trainers (Yuri I  
think) mentioned that adding mappings will grow the state and that it  
_could_ have a performance impact if there are too many.

On Thu, Mar 28, 2013 at 4:14 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> In short, this not a problem but rather a necessity to keep your cluster  
> intact with all its information.
> 
> the cluster state contains lots of metadata about all your indices, shards,  
> their mappings as the current cluster status. This means, by adding more  
> indices the complete cluster state data also grows as more metadata is  
> added. The cluster state is also being replicated from the master to all  
> other nodes on changes.
> 
> In case you are not adding indices or not adding documents with new fields  
> (which results in new mapping entries) or you do not add new nodes with more  
> shards you might want to elaborate what is causing this though.
> 
> Hope it helps..
> 
> --Alex
> 
> On Wed, Mar 27, 2013 at 10:50 PM, Telvis Calhoun Jr. [telvis07@gmail.com](mailto:telvis07@gmail.com)  
> wrote:
> 
> > In my cluster running 0.20.1, the message returned from /\_cluster/state is  
> > 6.8M and growing. Will that cause a problem?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/UNeh8EnZaq4/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/UNeh8EnZaq4/unsubscribe?hl=en-US).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [March 28, 2013, 3:45pm UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344/4 "2013-03-28T15:45:14Z")

</div>

On Thu, 2013-03-28 at 11:34 -0400, Telvis Calhoun Jr. wrote:

> I am adding indices and each index has 30+ type mappings and each  
> mapping has 10+ fields. During training, one of the trainers (Yuri I  
> think) mentioned that adding mappings will grow the state and that it  
> _could_ have a performance impact if there are too many.

Think that:

- the cluster state is on every node
- has to be transferred to every node every time it changes

So yes, very big cluster states can have a performance impact.

We've seen states with hundreds of thousands of aliases, which can take  
a couple of seconds to update

clint

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 2:43am UTC](https://discuss.elastic.co/t/does-the-cluster-state-size-impact-performance/11344/5 "2017-07-06T02:43:49Z")

</div>


