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 2AAAF200CD9 for ; Thu, 3 Aug 2017 19:25:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 292A916C16F; Thu, 3 Aug 2017 17:25:03 +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 7018416C16E for ; Thu, 3 Aug 2017 19:25:02 +0200 (CEST) Received: (qmail 92238 invoked by uid 500); 3 Aug 2017 17:25:01 -0000 Mailing-List: contact dev-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list dev@airflow.incubator.apache.org Received: (qmail 92225 invoked by uid 99); 3 Aug 2017 17:25:01 -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; Thu, 03 Aug 2017 17:25:01 +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 C3BCB1A0946 for ; Thu, 3 Aug 2017 17:25:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=ubee-in.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id NferM2aDX6FX for ; Thu, 3 Aug 2017 17:24:58 +0000 (UTC) Received: from mail-ua0-f169.google.com (mail-ua0-f169.google.com [209.85.217.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7D22B5FD3D for ; Thu, 3 Aug 2017 17:24:58 +0000 (UTC) Received: by mail-ua0-f169.google.com with SMTP id w45so9095542uac.5 for ; Thu, 03 Aug 2017 10:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ubee-in.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=+pp5bCqU2FKVP3pOOjDGLy3GeiVY4JrIEGCDrE9TfHQ=; b=vP6SpbEQtsecg32HqGeHB2Pzr398+JHMDitPu56JyCIMjMZUiprksF2ba5MT5xR4qi nmKOS3aXYS7FPjdIEyz0KbhYBkty+P0wQcELbSYS9MCh/ju76QQJ12dSfB5GvW+58y/0 o8h7+9nvB8rhzZ2N3GxBGEDVlB5tOmmkN5krY0XMkmsacRuYB2uLRbE2YDK7E5kzPRQx I5cFVKBD9dLZmyTM3re+GsnJmjrdjI1NzQPJKzJMKE+9Cl5+zyM2LeBfUOruCmTn6ykl MlrVSHOB6TvOYCyBKyusCYNcpzvZMko6lxHgdgMChgkHMU6zKYa+bhbMBiBcFk+k03ua vLCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=+pp5bCqU2FKVP3pOOjDGLy3GeiVY4JrIEGCDrE9TfHQ=; b=t+5+EM28EyB8SvertRKRhSmCLFNAENw5GKNYMcp6LBp0q8UdUG/fpXorofYOz6ZfJM roSw5yQ27m8wel876dj+YBcV9ZgggsyGFbpCgAD+Sbaxlb174mba+4AVtp+EMLqk/816 QKcCWD0neOCTIM0M0CwTP0nmKNxcUlxHq3RXZ85cowOFUwEoTKEFLqwq5KbNHb0iGAni GM3ZM2RBb53tnty+Ek3I5h7HL60kJz3UjJ5SwmWT+K7ShEo35OstsDwR0TvJ5VO7GZbo QWjN/E1AlMFamHovYYI1wmF9X/6dqsDfb3xVTzT7YAjWkl6h4Yyi1gmXQKv0ReeDxfO8 fYDQ== X-Gm-Message-State: AIVw111g9CeLOoHAkiwpHIiOEubHONK4KRDpmH08p3Ekn0K88TK8IaUm MuI1KxueqWR3B8FLnp3bR0fobaJZuCQV X-Received: by 10.159.59.134 with SMTP id r6mr1788325uah.91.1501781092456; Thu, 03 Aug 2017 10:24:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.95.199 with HTTP; Thu, 3 Aug 2017 10:24:52 -0700 (PDT) In-Reply-To: References: From: Victor Monteiro Date: Thu, 3 Aug 2017 14:24:52 -0300 Message-ID: Subject: Re: Per-task resources with Mesos To: dev@airflow.incubator.apache.org Content-Type: multipart/alternative; boundary="f403043ed3248c4f9b0555dca80b" archived-at: Thu, 03 Aug 2017 17:25:03 -0000 --f403043ed3248c4f9b0555dca80b Content-Type: text/plain; charset="UTF-8" Hi Stefano, have you read about queues? Airflow has this concept and I think you can decide for which queue a task should go. By doing this and integrating it with mesos, I believe you can make a mesos cluster with more resources to get tasks from a certain queue specific for heavy computations. Maybe this can solve your problem (not sure) :D 2017-08-03 4:34 GMT-03:00 Stefano Baghino : > Hi everyone, > > I'm investigating the possibility for our organization to use Airflow for > workflow management. > > Some requirements on our side regard resource management, and in particular > the possibility for the system to run tasks on top of Apache Mesos. Airflow > partially satisfies our requirements in that regard, meaning that after > having a look at the docs and code, it appears to me (correct me if I'm > wrong) that resources are determined for the whole system (via > configuration) and cannot be determined on a per-task basis. We'd need this > because some of our jobs are quite lightweight while others may require a > lot of resources, making it a "one-size-fits-all" configuration quite > wasteful. > > I had a look at the AirflowMesosScheduler and MesosExecutor and thought it > would be nice to add this feature and perhaps I can add it myself. What I > would need is some guidance on how to make this fit into the overall system > design: is there an established way to explicitly ask for resources for a > specific task in the DAG? If not, what could be a possible way to introduce > it? And if this reveals itself to be outside of the scope of Airflow, how > do you think I can make it meet our requirement? > > Thanks in advance. > > P.S.: if by any chance some of you are on the Mesos mailing list as well, > you may know that I'm having issues in making Airflow run successfully > using Mesos due to missing Python packages. I'm not sure whether this > mailing list is an appropriate place for users to get help. If so, I could > probably share that post here as well. Thanks! > > -- > Stefano Baghino | TERALYTICS > *software engineer* > > Teralytics AG | Zollstrasse 62 | 8005 Zurich | Switzerland > phone: +41 43 508 24 57 > email: stefano.baghino@teralytics.ch > www.teralytics.net > > Company registration number: CH-020.3.037.709-7 | Trade register Canton > Zurich > Board of directors: Georg Polzer, Luciano Franceschina, Mark Schmitz, Yann > de Vries > > This e-mail message contains confidential information which is for the sole > attention and use of the intended recipient. Please notify us at once if > you think that it may not be intended for you and delete it immediately. > --f403043ed3248c4f9b0555dca80b--