# How to except primary shard to specific node?

**URL:** <https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228>\
**Category:** Elasticsearch\
**Created:** [June 25, 2018, 10:03am UTC](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228 "2018-06-25T10:03:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![76a99de1e92a429af5f9](https://avatars.discourse-cdn.com/v4/letter/7/b782af/32.png) [@76a99de1e92a429af5f9](https://discuss.elastic.co/u/76a99de1e92a429af5f9)\
**Post date:** [June 25, 2018, 10:03am UTC](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228/1 "2018-06-25T10:03:35Z")

</div>

Hi,

I have 8 elasticsearch data node, and they save 200GB indexes per day.  
Umm.. indexes replica setting is 1, so, As a result, 400GB indexes will saved.

By the way, I have a focus on elasitcsearch's performance.  
If 1 of 8 node is failed, or If I shut down with specific node, cluster will delayed!

And I guess,, Cause of delay is primary node where in terminated node(unassigned node).  
So I think, when I shut down node, without primary shard, it will be better performance on the job.

Am I wrong? Or, Elasticsearch have a function to change primary shard location? or, Do you have any plans?  
My elasticsearch version is 6.1.2.  
Also, I know elasticsearch have routing.allocation.exclude function, but it takes a lot of load to move 300GB shards.

I look forward to hearing from you.  
Thank you.

---

<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:** [June 26, 2018, 11:33pm UTC](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228/2 "2018-06-26T23:33:24Z")

</div>

> [@76a99de1e92a429af5f9](#):
>
> Or, Elasticsearch have a function to change primary shard location?

If you have a replica shard, then that will be promoted to primary if the original primary goes away. The cluster will then work to reallocate the now missing replica. The only way to stop that would be to have no replicas, which you don't want.

---

<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:** [July 24, 2018, 11:33pm UTC](https://discuss.elastic.co/t/how-to-except-primary-shard-to-specific-node/137228/3 "2018-07-24T23:33:26Z")

</div>

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