# Single Node Cluster Shard Allocation Problem

**URL:** <https://discuss.elastic.co/t/single-node-cluster-shard-allocation-problem/140017>\
**Category:** Elasticsearch\
**Created:** [July 14, 2018, 1:12am UTC](https://discuss.elastic.co/t/single-node-cluster-shard-allocation-problem/140017 "2018-07-14T01:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adwaitjoshi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adwaitjoshi/32/35098_2.png) [@adwaitjoshi](https://discuss.elastic.co/u/adwaitjoshi)\
**Post date:** [July 14, 2018, 1:12am UTC](https://discuss.elastic.co/t/single-node-cluster-shard-allocation-problem/140017/1 "2018-07-14T01:12:46Z")

</div>

I have a single node cluster and each time I set the replication to 0, I see that after some time the status goes to yellow and the .monitoring\* and the .watcher\* indexes has unassigned shards. I have to manually set the replication to 0. Is there a global default setting for single nodes to turn off replication for good so that this applies to all indices?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 14, 2018, 6:45am UTC](https://discuss.elastic.co/t/single-node-cluster-shard-allocation-problem/140017/2 "2018-07-14T06:45:10Z")

</div>

Create an [index template](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/indices-templates.html#indices-templates) that applies to all indices that are created.

```auto
{
  "index_patterns": ["*"],
  "settings": {
    "number_of_replicas": 0
  }
}

```

---

<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:** [August 11, 2018, 6:57am UTC](https://discuss.elastic.co/t/single-node-cluster-shard-allocation-problem/140017/3 "2018-08-11T06:57:12Z")

</div>

Closed on August 11, 2018, 6:57am UTC

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