# Should Coordination Nodes be Allocated Shards?

**URL:** <https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196>\
**Category:** Elasticsearch\
**Created:** [November 17, 2017, 8:31pm UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196 "2017-11-17T20:31:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trumpet7347](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@trumpet7347](https://discuss.elastic.co/u/trumpet7347)\
**Post date:** [November 17, 2017, 8:31pm UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196/1 "2017-11-17T20:31:42Z")

</div>

Hello,

I currently have an Elasticsearch cluster setup on a docker swarm. To be able to access the cluster outside of the swarm, I setup a coordination node that maps the ports to the host machine. The issue I am seeing is that the coordination node is having shards allocated to it, even though it has all of the node options in the config set to false. Is this an intended behavior, from my understanding only data nodes should have shards allocated to them. Thanks in advanced for the help!

---

<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:** [November 17, 2017, 8:33pm UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196/2 "2017-11-17T20:33:16Z")

</div>

They shouldn't, but if they are that would indicate that the config is not 100% accurate.  
Can you show it to us?

---

<div class="post-metadata">

**Author:** ![trumpet7347](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@trumpet7347](https://discuss.elastic.co/u/trumpet7347)\
**Post date:** [November 17, 2017, 8:48pm UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196/3 "2017-11-17T20:48:22Z")

</div>

Thanks for the reply warkolm, but I just realized I didn't update the directory config in my docker compose file, so it was pointing to the config of my docker data nodes. I always seem to find my stupid mistakes right after I make a post like this. Thank you again for the help!

---

<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:** [November 18, 2017, 9:57am UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196/4 "2017-11-18T09:57:13Z")

</div>

No problems, it happens to us all 🙂

---

<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:** [December 16, 2017, 9:57am UTC](https://discuss.elastic.co/t/should-coordination-nodes-be-allocated-shards/108196/5 "2017-12-16T09:57:15Z")

</div>

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