# Adjusting number of replica shards?

**URL:** https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232
**Category:** Elasticsearch
**Created:** [August 4, 2016, 2:37pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232 "2016-08-04T14:37:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Steve\_Suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_suh/32/10638_2.png) [@Steve\_Suh](https://discuss.elastic.co/u/Steve_Suh)
#### Post date: [August 4, 2016, 2:37pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/1 "2016-08-04T14:37:57Z")

</div>

Can I just the number of replica shards after index creation and the index starts taking documents? Can I increase and decrease as well?

For our staging, I currently have 1 and I want to reduce it to 0. Will that automatically remove the replica shard if I change the number of replicas?

---

<div class="post-metadata">

### Author: ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)
#### Post date: [August 4, 2016, 2:39pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/2 "2016-08-04T14:39:31Z")

</div>

Hi,

> [@Steve\_Suh](#):
>
> Can I just the number of replica shards after index creation and the index starts taking documents? Can I increase and decrease as well?

Yes

> [@Steve\_Suh](#):
>
> For our staging, I currently have 1 and I want to reduce it to 0. Will that automatically remove the replica shard if I change the number of replicas?

And yes!

---

<div class="post-metadata">

### Author: ![Steve\_Suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_suh/32/10638_2.png) [@Steve\_Suh](https://discuss.elastic.co/u/Steve_Suh)
#### Post date: [August 4, 2016, 2:40pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/3 "2016-08-04T14:40:34Z")

</div>

Thanks. I wanted to test it out on staging first before I try it on production. Thanks for the super ultra fast response!

---

<div class="post-metadata">

### Author: ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)
#### Post date: [August 4, 2016, 2:42pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/4 "2016-08-04T14:42:10Z")

</div>

> [@Steve\_Suh](#):
>
> I wanted to test it out on staging first before I try it on production.

Sure. Adding replicas can have a cost: files need to be created, shards need to be allocated to a node, then files need to be sent over the wire etc. This is not a lightweight process but you can change the replica number even after the index created.

---

<div class="post-metadata">

### Author: ![Steve\_Suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steve_suh/32/10638_2.png) [@Steve\_Suh](https://discuss.elastic.co/u/Steve_Suh)
#### Post date: [August 4, 2016, 3:25pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/5 "2016-08-04T15:25:24Z")

</div>

If I go from 1 to 0 will Elasticsearch free up the resources from the replica shard?

---

<div class="post-metadata">

### Author: ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)
#### Post date: [August 4, 2016, 3:26pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/6 "2016-08-04T15:26:39Z")

</div>

Yes, of course.

---

<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 5, 2017, 10:30pm UTC](https://discuss.elastic.co/t/adjusting-number-of-replica-shards/57232/7 "2017-07-05T22:30:03Z")

</div>


