# Disabling Replica Shard Check

**URL:** <https://discuss.elastic.co/t/disabling-replica-shard-check/105023>\
**Category:** Elasticsearch\
**Created:** [October 24, 2017, 9:08am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023 "2017-10-24T09:08:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmukhtar](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jmukhtar](https://discuss.elastic.co/u/jmukhtar)\
**Post date:** [October 24, 2017, 9:08am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/1 "2017-10-24T09:08:35Z")

</div>

I am running a single node ES with no replica's and monitoring it via icinga/nagios. I have set the replica shards to 0 via the curl command

curl -XPUT 'localhost:9200/\_settings?pretty' -H 'Content-Type: application/json' -d' { "index" : { "number\_of\_replicas" : 0 } } '

but the problem is the warning still appears every day on my nagios dashboard.

**Detail: One or more indexes are missing replica shards. Use -vv to list them.**

Is there a way to permanently suppress the warning? or set the value of replica shards to 0 via any configuration file?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 24, 2017, 9:09am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/2 "2017-10-24T09:09:14Z")

</div>

You will need to change your index templates to have no replicas.

---

<div class="post-metadata">

**Author:** ![jmukhtar](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jmukhtar](https://discuss.elastic.co/u/jmukhtar)\
**Post date:** [October 24, 2017, 9:17am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/3 "2017-10-24T09:17:06Z")

</div>

Can you point me to any documentation or an example?

Tried looking through curl -XGET 'localhost:9200/\_template?pretty' but can't see any thing related to number\_of\_replica

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 24, 2017, 6:14pm UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/4 "2017-10-24T18:14:07Z")

</div>

You need to explicitly set it, eg [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-create-index.html#create-index-settings](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-create-index.html#create-index-settings)

---

<div class="post-metadata">

**Author:** ![jmukhtar](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jmukhtar](https://discuss.elastic.co/u/jmukhtar)\
**Post date:** [October 26, 2017, 9:37am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/5 "2017-10-26T09:37:32Z")

</div>

Thanks, i was able to use the templates to set the number\_of\_replicas to 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:** [November 23, 2017, 9:37am UTC](https://discuss.elastic.co/t/disabling-replica-shard-check/105023/6 "2017-11-23T09:37:34Z")

</div>

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