# Auto expand replicas

**URL:** <https://discuss.elastic.co/t/auto-expand-replicas/219140>\
**Category:** Elasticsearch\
**Created:** [February 13, 2020, 7:26am UTC](https://discuss.elastic.co/t/auto-expand-replicas/219140 "2020-02-13T07:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![royal\_man](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/royal_man/32/67426_2.png) [@royal\_man](https://discuss.elastic.co/u/royal_man)\
**Post date:** [February 13, 2020, 7:26am UTC](https://discuss.elastic.co/t/auto-expand-replicas/219140/1 "2020-02-13T07:26:14Z")

</div>

I am trying to implement a scale up of elasticsearch cluster by increasing data nodes.

Data nodes: 10 nodes  
1 node: 2 shards (index1 and index2)  
Index1: 10 Primary and 0 replica  
Index2: 1 Primary and 9 Replica

I want to make it 20 nodes and I am applying auto\_expand\_replicas in `index2`. Sometimes it cause the cluster in yellow state. Will it affect the operations. How to avoid such events ?

I thought of first adding the nodes and then add replicas but I want the above process as it is triggered automatically according to the CPU usage. (I am trying to add autoscaling)

---

<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:** [March 12, 2020, 7:39am UTC](https://discuss.elastic.co/t/auto-expand-replicas/219140/2 "2020-03-12T07:39:24Z")

</div>

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