# Single node elastic.co cluster and cluster status

**URL:** https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594
**Category:** Elasticsearch
**Created:** [December 13, 2017, 3:44pm UTC](https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594 "2017-12-13T15:44:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![acchaulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acchaulk/32/24345_2.png) [@acchaulk](https://discuss.elastic.co/u/acchaulk)
#### Post date: [December 13, 2017, 3:44pm UTC](https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594/1 "2017-12-13T15:44:29Z")

</div>

Hello,

I have a similar question to [this post](https://discuss.elastic.co/t/partial-update-and-nested-type-performance/110534).

I am running a single node cluster for development and I do not want indexes to be trying to allocate replicas. I have templates for my indexes, but the watcher history indexes allocate replica nodes. When I try to set the "index.number\_of\_replicas" setting in elasticsearch.yml, it is an invalid property.

The goal here is to keep my cluster status green. Is there another way to achieve this?

Thanks

---

<div class="post-metadata">

### Author: ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)
#### Post date: [December 13, 2017, 5:57pm UTC](https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594/2 "2017-12-13T17:57:01Z")

</div>

Yes, you should use [index templates](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/indices-templates.html) for this, where you can do:

```auto
PUT /_template/my_template
{ "index_patterns": ["*"], "settings": { "number_of_replicas": 0 } }

```

So that all newly created indices automatically have 0 replicas.

---

<div class="post-metadata">

### Author: ![acchaulk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acchaulk/32/24345_2.png) [@acchaulk](https://discuss.elastic.co/u/acchaulk)
#### Post date: [December 13, 2017, 6:33pm UTC](https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594/3 "2017-12-13T18:33:23Z")

</div>

ah, that works. thanks!

---

<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: [January 10, 2018, 6:33pm UTC](https://discuss.elastic.co/t/single-node-elastic-co-cluster-and-cluster-status/111594/4 "2018-01-10T18:33:37Z")

</div>

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