# Creating replica though replica creatin set to 0

**URL:** <https://discuss.elastic.co/t/creating-replica-though-replica-creatin-set-to-0/193255>\
**Category:** Elasticsearch\
**Tags:** ccr-cross-cluster-replication\
**Created:** [August 1, 2019, 6:29am UTC](https://discuss.elastic.co/t/creating-replica-though-replica-creatin-set-to-0/193255 "2019-08-01T06:29:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockykarhe](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@rockykarhe](https://discuss.elastic.co/u/rockykarhe)\
**Post date:** [August 1, 2019, 6:29am UTC](https://discuss.elastic.co/t/creating-replica-though-replica-creatin-set-to-0/193255/1 "2019-08-01T06:29:47Z")

</div>

Hello,

I have 3-node cluster setup of ElasticSearch. I want to try out how replication works and in order to test the same I have created a sample index using query given below. Here idea is to create 0 replicas, however **still I can see the index get created in all the nodes** , according to me this should not have created the same index in other nodes as "number\_of\_replicas":0 here?

curl -XPUT 'localhost:9200/sampleindexes?pretty' -H 'Content-Type: application/json' -d '  
{  
"settings":{  
"number\_of\_shards":2,  
"number\_of\_replicas":0  
}  
}  
'

Thanks,

---

<div class="post-metadata">

**Author:** ![angelo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/angelo/32/61325_2.png) [@angelo](https://discuss.elastic.co/u/angelo)\
**Post date:** [August 2, 2019, 1:18pm UTC](https://discuss.elastic.co/t/creating-replica-though-replica-creatin-set-to-0/193255/2 "2019-08-02T13:18:27Z")

</div>

Please confirm output of `_cat/shards` to make sure that you are seeing only primary shards being allocated to the other nodes.

---

<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 30, 2019, 1:18pm UTC](https://discuss.elastic.co/t/creating-replica-though-replica-creatin-set-to-0/193255/3 "2019-08-30T13:18:36Z")

</div>

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