# Unassigned shards =\> How to set default replica number to 0?

**URL:** https://discuss.elastic.co/t/unassigned-shards-how-to-set-default-replica-number-to-0/336458
**Category:** Elasticsearch
**Created:** [June 20, 2023, 9:21am UTC](https://discuss.elastic.co/t/unassigned-shards-how-to-set-default-replica-number-to-0/336458 "2023-06-20T09:21:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sbocquet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sbocquet/32/105594_2.png) [@sbocquet](https://discuss.elastic.co/u/sbocquet)
#### Post date: [June 20, 2023, 1:36pm UTC](https://discuss.elastic.co/t/unassigned-shards-how-to-set-default-replica-number-to-0/336458/2 "2023-06-20T13:36:37Z")

</div>

I have modified my template in the same way of this post (adding number\_of\_replicas : 0 in it)

> [@Elasticsearch 8 single node replicas 0](https://discuss.elastic.co/t/elasticsearch-8-single-node-replicas-0/299676/8):
>
> I just tried another thing. In the Kibana Web interface I edit the template of index who not auto indexing. I just add a line with the setting "number\_of\_replicas": "0". I tell you in few days if this work. [monitoring-es-mb]

Will see if it works in a few days...

---

_[View the full topic](https://discuss.elastic.co/t/unassigned-shards-how-to-set-default-replica-number-to-0/336458)._
