Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53D4C200BB4 for ; Tue, 18 Oct 2016 01:25:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 524A1160AF0; Mon, 17 Oct 2016 23:25:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 994C4160AEC for ; Tue, 18 Oct 2016 01:25:44 +0200 (CEST) Received: (qmail 42429 invoked by uid 500); 17 Oct 2016 23:25:43 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 42414 invoked by uid 99); 17 Oct 2016 23:25:43 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2016 23:25:43 +0000 Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id BB9141A00D6 for ; Mon, 17 Oct 2016 23:25:42 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id x79so320642504lff.0 for ; Mon, 17 Oct 2016 16:25:42 -0700 (PDT) X-Gm-Message-State: AA6/9Rn15TGwVBHNuC0w2yObfRys8JTtB5SNwked8dCrgG+bXjhLwwefUjzuH82IyCR2jfIq7dcoG0SiWLX0HN7q X-Received: by 10.28.31.205 with SMTP id f196mr9367524wmf.28.1476746739099; Mon, 17 Oct 2016 16:25:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.169.17 with HTTP; Mon, 17 Oct 2016 16:25:18 -0700 (PDT) In-Reply-To: References: From: Zameer Manji Date: Mon, 17 Oct 2016 16:25:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Allowing both CommandInfo and ExecutorInfo on TaskInfo To: mesos Content-Type: multipart/alternative; boundary=001a114b3bd6cf50d4053f17e40d archived-at: Mon, 17 Oct 2016 23:25:45 -0000 --001a114b3bd6cf50d4053f17e40d Content-Type: text/plain; charset=UTF-8 I'm not convinced this is a valid use case. Mesos is supposed to be a generic kernel for launching "tasks", whatever they might be. In some cases it is useful to launch an executable, in other cases it might be useful to launch a series of executables, and in some other cases it might be useful to spawn a thread to do some work. Whatever that might be, it doesn't matter to Mesos and the executor and framework are free to establish a contract in `ExecutorInfo.data`, completely independent of the Mesos API. I think formalizing this contract between executors and frameworks via CommandInfo is going to introduce more problems than what they solve. If the CommandInfo struct is useful, frameworks and executors can just stuff that into ExecutorInfo.data, however it's not something that they need to adhere too. What's the underlying motivation for this? On Thu, Oct 13, 2016 at 10:40 AM, haosdent wrote: > For command task, if its `ExecutorInfo` would set with `CommandExecutor` as > well? > > Some tickets may relate to this. > > [1]: https://issues.apache.org/jira/browse/MESOS-2330 > [2]: https://issues.apache.org/jira/browse/MESOS-527 > [3]: https://issues.apache.org/jira/browse/MESOS-5198 > > On Fri, Oct 14, 2016 at 1:00 AM, Vinod Kone wrote: > > > Hi, > > > > We are contemplating whether to allow both CommandInfo and ExecutorInfo > on > > TaskInfo (MESOS-6294 >). > > Currently we only allow one or the other. The motivation is to allow > custom > > executors a more structured way to pass information (e.g, command) about > > Task. Right now custom executors have to get this data via > `TaskInfo.bytes` > > which is not ideal. > > > > Are there any custom executors out there that crash if they get Tasks > with > > CommandInfo set? > > > > Thoughts? > > > > Vinod > > > > > > -- > Best Regards, > Haosdent Huang > > -- > Zameer Manji > --001a114b3bd6cf50d4053f17e40d--