# Are replicas just for disaster recovery?

**URL:** https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745
**Category:** Elasticsearch
**Created:** [February 9, 2021, 2:18pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745 "2021-02-09T14:18:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mahalabobis](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mahalabobis](https://discuss.elastic.co/u/mahalabobis)
#### Post date: [February 9, 2021, 2:18pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/1 "2021-02-09T14:18:58Z")

</div>

We are using Elasticsearch mainly as cache, for getting fast results. Currently, we have all the default settings which I think is 1 replica per shard.

Should I change this setting to 0? Are replicas just for data recovery or does it also affect performance/functionality?

We don't care much about data loss since we often use the `curl -X DELETE http://elasticsearch:9200/_all` command.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 9, 2021, 2:27pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/2 "2021-02-09T14:27:27Z")

</div>

Hi @mahalabobis  
Replicas can also.provide read parallelization which can positively affect read performance (not always though), you may or may not need that depending on you requirements.

[Here](https://www.elastic.co/guide/en/elasticsearch/reference/current/tune-for-search-speed.html) are some strategies for search performance. You may not need any of these but I thought I would pass them on.

---

<div class="post-metadata">

### Author: ![mahalabobis](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mahalabobis](https://discuss.elastic.co/u/mahalabobis)
#### Post date: [February 9, 2021, 2:30pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/3 "2021-02-09T14:30:47Z")

</div>

My main concern is to reduce the number of shards. We are having more than 600 shards per node. More often than not, it goes yellow with many unassigned shards. So I thought maybe removing replicas is potential solution

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 9, 2021, 2:47pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/4 "2021-02-09T14:47:36Z")

</div>

Yes if you can remove the replicas (also long as you stated you are OK without HA) also you may consider reducing the number of shards which may also help performance. You can the replicas to 0 in the index settings for all your indices then the cluster will be green.

---

<div class="post-metadata">

### Author: ![mahalabobis](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mahalabobis](https://discuss.elastic.co/u/mahalabobis)
#### Post date: [February 9, 2021, 3:26pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/5 "2021-02-09T15:26:15Z")

</div>

I'm OK without High Availability but what about performance? Will it be affected?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [February 9, 2021, 3:44pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/6 "2021-02-09T15:44:50Z")

</div>

You will need to test that... I can not predict that...

---

<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 9, 2021, 3:45pm UTC](https://discuss.elastic.co/t/are-replicas-just-for-disaster-recovery/263745/7 "2021-03-09T15:45:18Z")

</div>

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