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 33AA0200BC2 for ; Wed, 2 Nov 2016 22:55:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 32805160AFB; Wed, 2 Nov 2016 21:55:55 +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 BF2C6160AF0 for ; Wed, 2 Nov 2016 22:55:53 +0100 (CET) Received: (qmail 23610 invoked by uid 500); 2 Nov 2016 21:55:52 -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 23592 invoked by uid 99); 2 Nov 2016 21:55:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 21:55:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 250AC1A9FDE for ; Wed, 2 Nov 2016 21:55:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bOXhaatYPcAd for ; Wed, 2 Nov 2016 21:55:50 +0000 (UTC) Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6DD665FBCF for ; Wed, 2 Nov 2016 21:55:49 +0000 (UTC) Received: by mail-vk0-f53.google.com with SMTP id w194so24656577vkw.2 for ; Wed, 02 Nov 2016 14:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=s+E20e+p4YECt2e3U6Cno5YN/uOvi4aMxLiWRglOLcI=; b=jQpVHB/Rl7lkZ3oAVkX5FFlp+M3poEwlnJggIV9Ofi7bmD193/ooES5H42hAlMm/rg DtupJpz3lf1q4HHlK39BK4Gz8Y6LJhzMo/krGIgr8Ppj0HvYlm2PT+v4DrQbguuIaVfl PSTOiBtoICulj3OeXjee9xUQFFPn8GA3RSaeUKCoWQdFNG7Ey4yaEScvOMvpusNXaWDf l/qW7wkif+oA2KdQcKHZ/KwTRMLMY9MvrHornuPJ/zu9KU0MntdfrZ0GYLu8vL1lg6Yf MOQYPgHL8D+bgwh2O033x5X9hEBKA5S3hoeCj4oxt+pQCu02pSvj2sjwFI6MN9Aabun4 QqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=s+E20e+p4YECt2e3U6Cno5YN/uOvi4aMxLiWRglOLcI=; b=llg+uJD4kkjNQDetHdBQuhi+ubnN60D70f9i0kWfjtxynwCjguFCY7L53U1N2K5Amc Q3gbRzEJPRMFMk4eiJimrbK6sHPeZzNmRP3FO+lmNfEQdD7Iv5jqCz/o8Z6vOnRp37yo 5gGGzBB23ZYG9O6YlK4rHTPgf8heTlgos9qJEx/BSCCtHtQ47YNI+lOxoyMTE+Bj7Umk GVFwBHSD9BTrz1QtnUvkVQHZ2pyMw1wQ8V6aEODONy75k4deARuFjIicLybSuV576RY8 PVIeUTHTypuYVtf2hbS0+pmU/qhL2x46YHy2xY5tNEBuhkl2iRlXorATfDS9ROvOxljs 1RuQ== X-Gm-Message-State: ABUngvfO+EeZFE0imqRBDm/E1//8ubG99Zc5Pq4C36C7gguEbgjfpO8J9mRVkf7gUh9M6vZD3yeepjo8pamU3w== X-Received: by 10.31.3.216 with SMTP id f85mr4678844vki.121.1478123748231; Wed, 02 Nov 2016 14:55:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Greenberg Date: Wed, 02 Nov 2016 21:55:37 +0000 Message-ID: Subject: Re: Allowing both CommandInfo and ExecutorInfo on TaskInfo To: mesos Content-Type: multipart/alternative; boundary=001a114286e4f2929c05405880fc archived-at: Wed, 02 Nov 2016 21:55:55 -0000 --001a114286e4f2929c05405880fc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have worked with executors that perform both conditional & unconditional execution of a process graph, configurable by the framework. I think that it would be hard to standardize. On Wed, Nov 2, 2016 at 2:49 PM Zameer Manji wrote: > Joris, > > You make a good point. However, I'm not convinced that `CommandInfo` shou= ld > be the well defined construct that people use. Can you please describe > different custom executors, and the overlap between them and how > CommandInfo will reduce that overlap? I'm having a hard time seeing where > CommandInfo will solve all of their cases. > > Consider the cause of Thermos (Aurora's Executor), it could never use a > `CommandInfo` struct because it executes a processes graph instead of a > single command. > > If the project wants to go down this path, I think generalizing > `CommandInfo` that could capture more cases (ie multiple commands or a > graph of commands) would be a better first step. > > What do you think? > > On Wed, Oct 26, 2016 at 10:38 AM, Joris Van Remoortere < > joris@mesosphere.io> > wrote: > > > I do think it would be valuable to have a more well defined contract > > between frameworks and custom executors. > > > > As Zameer pointed out a specific framework and accompanying custom > executor > > can decide to do that in the data bytes; however, if we started buildin= g > > out a few different flavors of executors then it would be great for the= re > > to be standard way to pass command information to them. > > > > The current model works well in a 1-1 mapping between framework and > > executor binaries. In a world where that is 1-N it means all N executor= s > > have to use the same method of passing the command. > > > > =E2=80=94 > > *Joris Van Remoortere* > > Mesosphere > > > > On Mon, Oct 17, 2016 at 4:25 PM, Zameer Manji wrote= : > > > > > 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 migh= t > > be, > > > it doesn't matter to Mesos and the executor and framework are free to > > > establish a contract in `ExecutorInfo.data`, completely independent o= f > > the > > > Mesos API. > > > > > > I think formalizing this contract between executors and frameworks vi= a > > > 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 nee= d > 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 > jira/browse/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 > > > > > > > > > > > -- > > Zameer Manji > > > --001a114286e4f2929c05405880fc--