You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Diptanu Choudhury <di...@gmail.com> on 2014/05/13 08:40:11 UTC
Max Share on Mesos Frameworks
Hi,
Sorry if this is already answered somewhere in the docs, couldn't find
anything. What does the Max share percentage for a framework mean? Is this
something which would determine the share of offers which will be made to a
framework if there are more than one running and if so is it something that
can be configured programmatically.
--
Thanks,
Diptanu Choudhury
Web - www.linkedin.com/in/diptanu
Twitter - @diptanu <http://twitter.com/diptanu>
Re: Max Share on Mesos Frameworks
Posted by Chengwei Yang <ch...@gmail.com>.
On Tue, May 13, 2014 at 01:26:52AM -0700, Adam Bordelon wrote:
> Hi Diptanu,
>
> If you are referring to the "Max Share" column for frameworks in the web ui,
> that is not a configuration parameter determining how many resources to offer
> to a framework. It is rather just the max(cpu_share, mem_share) where each
> share is the percentage of total resources currently in use by that framework.
As I know, it's not *in use* but offered.
> A better descriptor for that column might be "Dominant Resource Share".
>
> If you do want to specify the share of resources offered to each framework, you
> should look into the 'roles' and 'weights' parameters from `mesos-master --help
> `. For example, you could specify that frameworks of the "high priority" role
> deserve double the resource share of normal frameworks, and that frameworks
> with the "low priority" should only get half as many resources as normal
> frameworks.
In addition, you can refer to the "resources" parameter from *mesos-slave --help*
reserve some resources for a specific framework.
--
Thanks,
Chengwei
>
> Hope that helps,
> -Adam-
>
>
> On Mon, May 12, 2014 at 11:40 PM, Diptanu Choudhury <di...@gmail.com> wrote:
>
> Hi,
>
> Sorry if this is already answered somewhere in the docs, couldn't find
> anything. What does the Max share percentage for a framework mean? Is this
> something which would determine the share of offers which will be made to a
> framework if there are more than one running and if so is it something that
> can be configured programmatically.
>
> --
> Thanks,
> Diptanu Choudhury
> Web - www.linkedin.com/in/diptanu
> Twitter - @diptanu
>
>
Re: Max Share on Mesos Frameworks
Posted by Adam Bordelon <ad...@mesosphere.io>.
Hi Diptanu,
If you are referring to the "Max Share" column for frameworks in the web
ui, that is not a configuration parameter determining how many resources to
offer to a framework. It is rather just the max(cpu_share, mem_share) where
each share is the percentage of total resources currently in use by that
framework. A better descriptor for that column might be "Dominant Resource
Share".
If you do want to specify the share of resources offered to each framework,
you should look into the 'roles' and 'weights' parameters from
`mesos-master --help`. For example, you could specify that frameworks of
the "high priority" role deserve double the resource share of normal
frameworks, and that frameworks with the "low priority" should only get
half as many resources as normal frameworks.
Hope that helps,
-Adam-
On Mon, May 12, 2014 at 11:40 PM, Diptanu Choudhury <di...@gmail.com>wrote:
> Hi,
>
> Sorry if this is already answered somewhere in the docs, couldn't find
> anything. What does the Max share percentage for a framework mean? Is this
> something which would determine the share of offers which will be made to a
> framework if there are more than one running and if so is it something that
> can be configured programmatically.
>
> --
> Thanks,
> Diptanu Choudhury
> Web - www.linkedin.com/in/diptanu
> Twitter - @diptanu <http://twitter.com/diptanu>
>