# Can Elasticsearch cluster appoint the shards to a specific data node?

**URL:** <https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192>\
**Category:** Elasticsearch\
**Created:** [August 17, 2020, 7:37am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192 "2020-08-17T07:37:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [August 17, 2020, 7:37am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/1 "2020-08-17T07:37:14Z")

</div>

Hi ,i have two question  
1 , If Elasticsearch cluster data node can located in different cities ?  
for expample ,some data node server in New York and others in Washington ?  
2, IF elasticsearch cluster can appiont the shards to a specific data node ?  
for example , index name "new\_york" shards appoint to the data node ip address in New Yorn  
and the index name "Washington" shards apiont to the data node ip address in Washington?

Because we have some server in diffent city to collect log data ,  
and we want to save the log data to the server in same city,that the speed maybe faster;

Some body know this ?thank you

---

<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:** [August 17, 2020, 7:39am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/2 "2020-08-17T07:39:59Z")

</div>

Elasticsearch requires low latency and good bandwidth between the nodes in a cluster so distributing across geographic regions is generally not recommended.

You can use shard allocation awareness and filtering to control shard distribution so I would recommend you read up on these topics to see if it fits your needs.

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [August 17, 2020, 8:21am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/3 "2020-08-17T08:21:38Z")

</div>

Thank you for response;  
yes ,i try to google how to appoint the shard to specific data node ,but find none ;  
and i know the user define `routing` can appoint a document to specific shard ,  
but no find how to appoint to a specifig data node!

---

<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:** [August 17, 2020, 9:51am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/4 "2020-08-17T09:51:06Z")

</div>

What are you trying to achieve? What size cluster are you planning to have?

---

<div class="post-metadata">

**Author:** ![Fent](https://avatars.discourse-cdn.com/v4/letter/f/858c86/32.png) [@Fent](https://discuss.elastic.co/u/Fent)\
**Post date:** [August 18, 2020, 12:51am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/5 "2020-08-18T00:51:41Z")

</div>

Maybe 40 000 000 document /day

---

<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 15, 2020, 12:51am UTC](https://discuss.elastic.co/t/can-elasticsearch-cluster-appoint-the-shards-to-a-specific-data-node/245192/6 "2020-09-15T00:51:51Z")

</div>

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