Well, the log you mentioned above is when the resource offer is accepted
and mesos-master then allocates the cpu. In my case, the offer is being
rejected. I am trying to debug the reason as to why the resource offer is
being rejected.

On Tue, Sep 1, 2015 at 10:00 AM, haosdent <[email protected]> wrote:

> Yes, currently only print number for offers in mesos code in default log
> level. If you want get more details about it, you could start with set
> environment variable GLOG_v2=1 Then you should got some similar message
> like this:
>
> I0902 00:55:17.465920 143396864 hierarchical.hpp:935] Allocating
> cpus(*):x; mem(*):x; disk(*):x; ports(*):[x-x] on slave
> 20150902-005512-16777343-5050-46447-S0 to framework 20150902-00551
> 2-16777343-5050-46447-0000
>
> But use GLOG_v2 would have a lot of log. If you just want to get the
> resources allocated to task or executor, you could get those informations
> from slave state.json endpoint.
>
> On Wed, Sep 2, 2015 at 12:41 AM, Haripriya Ayyalasomayajula <
> [email protected]> wrote:
>
>> Thanks, but is there no way without tweaking the source code of the
>> framework scheduler that I get the details of the resource offer? I don't
>> see anything in my logs.
>>
>> All I can see is
>>
>> mesos-master: Sending 5 offers to framework 20150815-.... (marathon) at
>> scheduler-50ajaja@pqr
>>
>> I can't find any other details in the logs..
>>
>> On Mon, Aug 31, 2015 at 8:36 PM, haosdent <[email protected]> wrote:
>>
>>> Hi, Haripriya.
>>>
>>> >1. I am trying to see the details of the resource offer made by the
>>> mesos master. I can see in the logs that there are 5 resource offers made
>>> but I am not sure where to get the details of the resource offers - the
>>> cpu, memory etc.
>>>
>>> You could print offer details in your framework Scheduler#resourceOffers
>>> methods. These offer message also could find from mesos log.
>>>
>>> >2. How can I list the number of slaves registered with the master and
>>> the details of the slaves on the command line( apart from seeing it in the
>>> UI)?
>>>
>>> We have some endpoints(state.json and state-summary) in master and slave
>>> to expose these informations, you could got this from
>>>
>>> ```
>>> curl -s "http://localhost:5050/master/state-summary"; |jq .slaves
>>> ```
>>>
>>>
>>> On Tue, Sep 1, 2015 at 6:47 AM, Haripriya Ayyalasomayajula <
>>> [email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm having trouble with some basic details:
>>>>
>>>> 1. I am trying to see the details of the resource offer made by the
>>>> mesos master. I can see in the logs that there are 5 resource offers made
>>>> but I am not sure where to get the details of the resource offers - the
>>>> cpu, memory etc.
>>>>
>>>> 2. How can I list the number of slaves registered with the master and
>>>> the details of the slaves on the command line( apart from seeing it in the
>>>> UI)?
>>>>
>>>> Thanks for the help.
>>>>
>>>> --
>>>> Regards,
>>>> Haripriya Ayyalasomayajula
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Haosdent Huang
>>>
>>
>>
>>
>> --
>> Regards,
>> Haripriya Ayyalasomayajula
>>
>>
>
>
> --
> Best Regards,
> Haosdent Huang
>



-- 
Regards,
Haripriya Ayyalasomayajula

Reply via email to