# Assign Master and ML both roles to same node?

**URL:** <https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041>\
**Category:** Elasticsearch\
**Created:** [April 13, 2021, 4:37pm UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041 "2021-04-13T16:37:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [April 13, 2021, 4:37pm UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/1 "2021-04-13T16:37:41Z")

</div>

Hi Team,

We plan to use Platinum license

1. Can I assign ML and Master both roles on single/same node?
2. From license count perspective, if I use 3 master and 3 ML both roles assigned to those 3 master nodes, will that be considered as 3 License count or 6 License count?
3. How much RAM as a standard should I assign for JVM for master to run smoothly and for ML

I plan to assign 64 GB RAM with 16 cores per node for above 3 nodes.

The reason I am trying to assign both roles to same node is to save on cost because just for Master (8 or 10 GB RAM) I need to spend entire 1 license cost hence want to share that cost with other licensed role.

Below 6 license are considered separately:  
I do plan for HOT (3 nodes) & WARM (3 nodes) again with all 64 GB RAM + 12 core

Appreciate your thoughts on this

---

<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:** [April 13, 2021, 10:40pm UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/2 "2021-04-13T22:40:12Z")

</div>

Can you please edit your post to remove the formatting, it makes your questions really hard to read.

---

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [April 14, 2021, 5:03am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/3 "2021-04-14T05:03:22Z")

</div>

@warkolm yes done.

---

<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:** [April 14, 2021, 8:10am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/4 "2021-04-14T08:10:13Z")

</div>

1. Yes. Make all 3 nodes master eligible + ML
2. it's 2 instances of Elasticsearch, so 3 licenses
3. That depends

---

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [April 14, 2021, 8:32am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/5 "2021-04-14T08:32:02Z")

</div>

> [@warkolm](#):
>
> it's 2 instances of Elasticsearch, so 3 licenses

ok thanks, I did not understood your statement about "its 2 instances" part. There will be actually 3 nodes having dual roles of Master + ML on all 3 nodes.

---

<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:** [April 14, 2021, 8:32am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/6 "2021-04-14T08:32:40Z")

</div>

That's a typo, I meant 3 instances, so 3 licenses.

---

<div class="post-metadata">

**Author:** ![bharat1](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bharat1](https://discuss.elastic.co/u/bharat1)\
**Post date:** [April 14, 2021, 8:36am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/7 "2021-04-14T08:36:40Z")

</div>

ok thanks. Its not only elasticsearch but those nodes will also work as ML job processing server. So even if Master (Elasticsearch) & ML server role hosted on same server will be considered as single license you mean?

In such dual role, how should we plan for allocation of available RAM for both roles?

---

<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:** [May 12, 2021, 8:37am UTC](https://discuss.elastic.co/t/assign-master-and-ml-both-roles-to-same-node/270041/8 "2021-05-12T08:37:12Z")

</div>

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