The offer will contain the running executors on that slave:
https://github.com/apache/mesos/blob/0.22.1/include/mesos/mesos.proto#L619

However, there are a few bugs to note if you're planning to use this in any
kind of production setup:

(1) If an executor exits, or a new one is started, we won't rescind the
offer to give you an updated list of executor ids.
(2) In some cases, he master may not accurately know whether executors are
running: https://issues.apache.org/jira/browse/MESOS-1961

On Wed, Jun 17, 2015 at 5:37 PM, Vinod Kone <vinodk...@gmail.com> wrote:

>
> On Wed, Jun 17, 2015 at 12:19 PM, Christopher Ketchum <cketc...@ucsc.edu>
> wrote:
>
>> My question is, is there an easy way to know if there is an executor
>> currently running on a slave? It seems like we want to treat offers
>> differently depending on wether the executor is already taken into account,
>> but how can we tell? Is it up to our framework to keep track of this?
>>
>
> That is correct. The framework is expected to keep track of this.
>
>

Reply via email to