Hello, Everyone:

I'm working on Mesos code, and become very confused about the resource
needed for executing a docker image.

In, "*src/cli/execute.cpp*",  *CommandScheduler.offers()*,  it pulls out
the resource from the task, and uses this resource information to check
whether to accept or decline the offer.

However in CommandScheduler, I don't see anywhere the task's resource is
updated.
And in the main() function, where a CommandScheduler object is create,  I
only see a docker-image-string used to create the task-info, still no
explicit compute resource usage information.

I need this resource information (code level) explicitly. Could anyone help
me to understand this point?

Thanks
Wenzhao

Reply via email to