# Elasticsearch 6.5.4 - Can we force Index creation on specific data node?

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [August 16, 2019, 5:07pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536 "2019-08-16T17:07:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sathish\_kumar\_Marimu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sathish_kumar_marimu/32/47922_2.png) [@Sathish\_kumar\_Marimu](https://discuss.elastic.co/u/Sathish_kumar_Marimu)\
**Post date:** [August 16, 2019, 5:07pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536/1 "2019-08-16T17:07:48Z")

</div>

Hi,

I am trying to restore an index dump into Elastic. I am creating an index with 1 shard and 2 replica. I have 6 data nodes in my prod cluster. Is there a way can i force the index creation on particular 3 data nodes because i have less disk space in other 3 data nodes ?

I am using the below elasticdump command to restore the dump. I am running on a data node but shard/replicas are creating in some other nodes which i am not expecting.

elasticdump --input=/usr/local/ecomm/data/index.json --output=http://localhost:9200 --type=data --limit=2000 --quiet=true --ignore-errors=true --timeout= 2000 --offset=1 --noRefresh

Can you please suggest a way to do it. Thanks in advance !!!

---

<div class="post-metadata">

**Author:** ![nhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhat/32/22170_2.png) [@nhat](https://discuss.elastic.co/u/nhat)\
**Post date:** [August 16, 2019, 8:53pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536/2 "2019-08-16T20:53:02Z")

</div>

@Sathish_kumar_Marimu Index-level shard allocation filtering would help [https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/shard-allocation-filtering.html)

---

<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 26, 2019, 2:00pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536/3 "2019-08-26T14:00:34Z")

</div>

> [@Sathish\_kumar\_Marimu](#):
>
> Is there a way can i force the index creation on particular 3 data nodes because i have less disk space in other 3 data nodes ?

You shouldn't need to do anything special. Elasticsearch will create the shards where it sees fit and by default will move them onto nodes with more space if needed.

---

<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:** [September 23, 2019, 2:00pm UTC](https://discuss.elastic.co/t/elasticsearch-6-5-4-can-we-force-index-creation-on-specific-data-node/195536/4 "2019-09-23T14:00:34Z")

</div>

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