You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by James Vanns <jv...@gmail.com> on 2015/03/12 19:00:53 UTC
Mesos Slave Attributes
I think I have a simple question here -- that doesn't seem too apparent in
any documentation I've come across; does the mesos master pass-through
slave attributes to the scheduler framework like it does with resource
offers?
Where can I see slave attributes -- the UI doesn't appear to display them.
Is their a REST endpoint I should be querying?
Cheers,
Jim
Re: Mesos Slave Attributes
Posted by James Vanns <jv...@gmail.com>.
That's great! Thanks. Precisely what I was after.
Jim
On 12 March 2015 at 18:07, Zameer Manji <zm...@apache.org> wrote:
> The mesos master does pass attributes on the slave to the scheduler
> framework. They are available on the Offer struct
> <https://github.com/apache/mesos/blob/acaee563a66e5528ae5c5e417f2a811f8ee466b2/include/mesos/mesos.proto#L618>
> .
>
> If you want to check the slave attributes you can check the state.json on
> the slave by looking at this endpoint: http://
> <host>:<port>/slave(1)/state.json
>
> On Thu, Mar 12, 2015 at 11:00 AM, James Vanns <jv...@gmail.com>
> wrote:
>
>> I think I have a simple question here -- that doesn't seem too apparent
>> in any documentation I've come across; does the mesos master pass-through
>> slave attributes to the scheduler framework like it does with resource
>> offers?
>>
>> Where can I see slave attributes -- the UI doesn't appear to display
>> them. Is their a REST endpoint I should be querying?
>>
>> Cheers,
>>
>> Jim
>>
>> --
>> Zameer Manji
>>
>>
Re: Mesos Slave Attributes
Posted by Zameer Manji <zm...@apache.org>.
The mesos master does pass attributes on the slave to the scheduler
framework. They are available on the Offer struct
<https://github.com/apache/mesos/blob/acaee563a66e5528ae5c5e417f2a811f8ee466b2/include/mesos/mesos.proto#L618>
.
If you want to check the slave attributes you can check the state.json on
the slave by looking at this endpoint: http://
<host>:<port>/slave(1)/state.json
On Thu, Mar 12, 2015 at 11:00 AM, James Vanns <jv...@gmail.com> wrote:
> I think I have a simple question here -- that doesn't seem too apparent in
> any documentation I've come across; does the mesos master pass-through
> slave attributes to the scheduler framework like it does with resource
> offers?
>
> Where can I see slave attributes -- the UI doesn't appear to display them.
> Is their a REST endpoint I should be querying?
>
> Cheers,
>
> Jim
>
> --
> Zameer Manji
>
>