Perfect! Thanks!

On Tue, Aug 4, 2015 at 11:49 AM, Greg Mann <[email protected]> wrote:

> Hi John,
> You are correct, memory & disk are specified in MB. This is documented at
> http://mesos.apache.org/documentation/attributes-resources/ in the
> section titled "Predefined Uses & Conventions".
>
> Cheers,
> Greg
>
> On Tue, Aug 4, 2015 at 6:54 AM, John Omernik <[email protected]> wrote:
>
>> Hey, all, I am looking to set my slave resources and was looking at the
>> documentation and was unclear exactly the format used by memory (and/or
>> disk) I am going to "assume" based on the numbers below, that 15360 is like
>> in MB?  (15 GB of ram seems like a good example, as opposed to saying it's
>> in KB which would say there are 15 MB of RAM in this example, or bytes
>> would say there are 15 KB of ram on this example).   If I am just missing
>> the documentation that helps explain this, please point me in that
>> direction. I would prefer a solid answer rather than trying to infer from
>> code/examples.
>>
>> Thanks!
>>
>>
>>
>> http://open.mesosphere.com/reference/mesos-slave/
>>
>> Total consumable resources per slave, in the form
>> 'name(role):value;name(role):value...'. This value can be set to limit
>> resources per role, or to overstate the number of resources that are
>> available to the slave. --resources="cpus(*):8; mem(*):15360;
>> disk(*):710534; ports(*):[31000-32000]"
>> --resources="cpus(prod):8; cpus(stage):2 mem(*):15360; disk(*):710534;
>> ports(*):[31000-32000]"
>> All * roles will be detected, so you can specify only the resources that
>> are not all roles (*). --resources="cpus(prod):8; cpus(stage)"
>>
>
>

Reply via email to