# Creating replicas dynamically

**URL:** <https://discuss.elastic.co/t/creating-replicas-dynamically/5774>\
**Category:** Elasticsearch\
**Created:** [November 4, 2011, 2:14pm UTC](https://discuss.elastic.co/t/creating-replicas-dynamically/5774 "2011-11-04T14:14:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BARNEY](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@BARNEY](https://discuss.elastic.co/u/BARNEY)\
**Post date:** [November 4, 2011, 2:14pm UTC](https://discuss.elastic.co/t/creating-replicas-dynamically/5774/1 "2011-11-04T14:14:32Z")

</div>

Hi,  
Can any one please tell me how to create replicas dynamically?  
Because at present i configure my node with 2 shards and 0  
replica(then cluster health is green),if no memory in 1st node and  
want to index more documents ,then i need to create one more node  
having replica of the first node.

Thanks,  
Kalyan

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [November 5, 2011, 12:31pm UTC](https://discuss.elastic.co/t/creating-replicas-dynamically/5774/2 "2011-11-05T12:31:16Z")

</div>

What do you want to achieve?

Replicas means 'duplications' of your shards, so it will use more  
memory/resources if you increase the replica count...  
if you want to distribute one index you'll need to increase the shard  
count (or split the index). Setting the shard count is only possible  
when creating an index, so you'll need to reindex.

Nevertheless Here is the API:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Peter.

On 4 Nov., 15:14, kalyan [kalyanc...@gmail.com](mailto:kalyanc...@gmail.com) wrote:

> Hi,  
> Can any one please tell me how to create replicas dynamically?  
> Because at present i configure my node with 2 shards and 0  
> replica(then cluster health is green),if no memory in 1st node and  
> want to index more documents ,then i need to create one more node  
> having replica of the first node.
> 
> Thanks,  
> Kalyan

---

<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, 3:49am UTC](https://discuss.elastic.co/t/creating-replicas-dynamically/5774/3 "2017-07-06T03:49:50Z")

</div>


