# Shard Overallocation not working

**URL:** <https://discuss.elastic.co/t/shard-overallocation-not-working/62960>\
**Category:** Elasticsearch\
**Created:** [October 13, 2016, 2:33pm UTC](https://discuss.elastic.co/t/shard-overallocation-not-working/62960 "2016-10-13T14:33:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 13, 2016, 2:33pm UTC](https://discuss.elastic.co/t/shard-overallocation-not-working/62960/1 "2016-10-13T14:33:21Z")

</div>

Hello everyone,  
I have two master nodes and I am looking to automatically move one shard from the first node to the second node. I can not do that I allways get all the primary shards in the same node and I think this is not optimum. I want to share the shards between my two master nodes. How can do that?

Thanks

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 13, 2016, 2:46pm UTC](https://discuss.elastic.co/t/shard-overallocation-not-working/62960/2 "2016-10-13T14:46:41Z")

</div>

> [@minniek](#):
>
> primary shards in the same node and I think this is not optimum.

Elasticsearch doesn't weigh primaries higher than replicas. They don't do _much_ more work than replicas. There are issues with this, mostly around replication but for the most part this is fine. There isn't a thing you can do about this right now.

> [@minniek](#):
>
> I want to share the shards between my two master nodes.

I think you have a misunderstanding about what master nodes are/do. Master nodes are really master-eligible. Only one node is the master at a time. That node makes all changes to the cluster state and syncs the updates out to all the other nodes.

Primary shards can be on any node that doesn't have `node.data: false`.

---

<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 5, 2017, 10:12pm UTC](https://discuss.elastic.co/t/shard-overallocation-not-working/62960/3 "2017-07-05T22:12:36Z")

</div>

Closed on July 5, 2017, 10:12pm UTC


