# Default number of replicas for Elastic Search index

**URL:** https://discuss.elastic.co/t/default-number-of-replicas-for-elastic-search-index/77369
**Category:** Elasticsearch
**Created:** [March 3, 2017, 10:59pm UTC](https://discuss.elastic.co/t/default-number-of-replicas-for-elastic-search-index/77369 "2017-03-03T22:59:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gkraan](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gkraan](https://discuss.elastic.co/u/gkraan)
#### Post date: [March 3, 2017, 10:59pm UTC](https://discuss.elastic.co/t/default-number-of-replicas-for-elastic-search-index/77369/1 "2017-03-03T22:59:03Z")

</div>

Hi,

be default when an index gets created in E.S. it will always have at least one replica. In a simple one node environment, I do not have a need for replicas at all. I know how to change the number of replica's to 0 AFTER an index has been created, but how can I configure E.S., so it does not create a replica for any index we create ?

I know we can use 'curl' and do this, but most indices are created by end-users using Kibanan, thus they cannot use 'curl' at all.

Thanks.

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [March 3, 2017, 11:41pm UTC](https://discuss.elastic.co/t/default-number-of-replicas-for-elastic-search-index/77369/2 "2017-03-03T23:41:44Z")

</div>

You can force this with an index template:

```auto
{
  "template": "INDEXorPATTERN",
  "version" : 50001,
  "settings" : {
    "index.refresh_interval" : "5s",
    "number_of_shards": "1",
    "number_of_replicas": "0"
  },
    "mappings": {

```

---

<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 31, 2017, 11:41pm UTC](https://discuss.elastic.co/t/default-number-of-replicas-for-elastic-search-index/77369/3 "2017-03-31T23:41:46Z")

</div>

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