# Elasticsearch clustering indices problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034>\
**Category:** Elasticsearch\
**Created:** [July 31, 2019, 5:09am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034 "2019-07-31T05:09:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mozart4242](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mozart4242/32/51297_2.png) [@Mozart4242](https://discuss.elastic.co/u/Mozart4242)\
**Post date:** [July 31, 2019, 5:09am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/1 "2019-07-31T05:09:28Z")

</div>

hello everyone, i'm using two node cluster :  
1- master node  
2- data node  
but when the cluster formed , all indices from master transported to the other node, and the index size are the same on each one, even though the number of replicas are "0" and number of shards are "3".  
im a little bit confused here, the replica is meant to be exact copy of data right ?  
and shards are like pieces of the data and 3 shards means 3 pieces right ?  
this is not ok for me two have 2 nodes each with 500GB disk and same data on each !!

i want to choose which index share to the other node , not all of them.  
any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 31, 2019, 6:04am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/2 "2019-07-31T06:04:45Z")

</div>

Hi @Mozart4242, it sounds like you are looking for [index-level allocation filtering](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html).

---

<div class="post-metadata">

**Author:** ![Mozart4242](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mozart4242/32/51297_2.png) [@Mozart4242](https://discuss.elastic.co/u/Mozart4242)\
**Post date:** [July 31, 2019, 3:06pm UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/3 "2019-07-31T15:06:07Z")

</div>

Thank you, i will check it out

---

<div class="post-metadata">

**Author:** ![Mozart4242](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mozart4242/32/51297_2.png) [@Mozart4242](https://discuss.elastic.co/u/Mozart4242)\
**Post date:** [August 2, 2019, 7:59am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/4 "2019-08-02T07:59:14Z")

</div>

That was not what im looking for ☹  
Any other ideas?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [August 2, 2019, 8:12am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/5 "2019-08-02T08:12:52Z")

</div>

If that doesn't help then I am not understanding the problem you are facing. Can you share the exact output from `GET _cat/shards` so we can see the distribution of shards in your cluster, and then describe in more detail how you want it to be different?

---

<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, 8:12am UTC](https://discuss.elastic.co/t/elasticsearch-clustering-indices-problem/193034/6 "2019-08-30T08:12:55Z")

</div>

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