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 F07E8200BD9 for ; Fri, 9 Dec 2016 21:16:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EF26D160B1D; Fri, 9 Dec 2016 20:16:58 +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 45B46160AFD for ; Fri, 9 Dec 2016 21:16:58 +0100 (CET) Received: (qmail 92890 invoked by uid 500); 9 Dec 2016 20:16:47 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 92880 invoked by uid 99); 9 Dec 2016 20:16:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2016 20:16:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E6ADFC00A6 for ; Fri, 9 Dec 2016 20:16:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id NWNxKxREVjmt for ; Fri, 9 Dec 2016 20:16:44 +0000 (UTC) Received: from mail-wj0-f180.google.com (mail-wj0-f180.google.com [209.85.210.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 765F65FBE1 for ; Fri, 9 Dec 2016 20:16:44 +0000 (UTC) Received: by mail-wj0-f180.google.com with SMTP id v7so23529923wjy.2 for ; Fri, 09 Dec 2016 12:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=gQRtUS1GromKkeFj93Q7gMXuA09zCYRyyvSBvE5lIrU=; b=UGL2VqlnCI0XAK7zCEBb7r5NaTHA9L0nwoBG+Krj8i0zQzms7Us0lfqM6kaD1MCpmX lS+uLgNvqsEgw6Vhh2Pc2xWcGEzHY3793kuCDkSto3EWLwOdNgiH6ZUw1ccTjk4UC98t xY6MEKk2vRwpgTlCqcs0eKcYixruHpkPdSRBa6r8myJYXlvEbhr+fJB9ygWi7+qr8sWg gCcv3gKvUrgB5Inl5SJiESOYsNy/9tPxG34AUigypkafgnyBRSRhbszb8oLMdkPpjEzi Gp05MaRygOSDnW17cJsLw2hzR9luT9HuFNv7B9EzdODzJCxivkhkGgah4/FRh2TI1PWE 5zDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=gQRtUS1GromKkeFj93Q7gMXuA09zCYRyyvSBvE5lIrU=; b=Zt2WD8u7PLpArWA2DvIH8AcA9RhPNk/H+PzthbR4AhvPRr53bsgoc/bymIvfj60MZS UT1q8Oq8FfTtS39eaQZnHoW0KR7XNtKlMeSxAu4tDmO8ARPM1KpSCBqSSG2IVsGCSKKL aLgKZA6IQVNChPS7vasapj18TcdJpTlaD7WCjm1XNieuNowA4zKFwT/wKGOK5DaTRort ZyloMkpiSXt2vnIU6REXLXqnE8AWG4E0xZrVECtNqnoYdfoppIIFehA1c3b7CrHw8WQX Sw+e0TRof1GIuA4hbYfMadRo7W3wNNna5N07uC17sLHajSGfLCcfXY6+/NzvkRbbDZ22 6JTQ== X-Gm-Message-State: AKaTC01taoO0yZ4F616hyvBfJPw3vpBujEg6zyjsHca5nNskJdlzRIaQ6Or/nX6D563jfg== X-Received: by 10.194.10.165 with SMTP id j5mr69060461wjb.119.1481314598140; Fri, 09 Dec 2016 12:16:38 -0800 (PST) Received: from mail-wj0-f178.google.com (mail-wj0-f178.google.com. [209.85.210.178]) by smtp.gmail.com with ESMTPSA id wg8sm43973356wjb.42.2016.12.09.12.16.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Dec 2016 12:16:37 -0800 (PST) Received: by mail-wj0-f178.google.com with SMTP id xy5so23577334wjc.0 for ; Fri, 09 Dec 2016 12:16:37 -0800 (PST) X-Received: by 10.194.90.83 with SMTP id bu19mr70027703wjb.68.1481314597006; Fri, 09 Dec 2016 12:16:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.3.134 with HTTP; Fri, 9 Dec 2016 12:16:36 -0800 (PST) In-Reply-To: References: From: Jie Yu Date: Fri, 9 Dec 2016 12:16:36 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Multi-agent machine To: user Content-Type: multipart/alternative; boundary=047d7bfcf59a5b08c505433f6ec9 archived-at: Fri, 09 Dec 2016 20:16:59 -0000 --047d7bfcf59a5b08c505433f6ec9 Content-Type: text/plain; charset=UTF-8 Charles, It should be possible. Here are the global 'object' that might conflict: 1) cgroup (you can use different cgroup root) 2) work_dir and runime_dir (you can set them to be different between agents) 3) network (e.g., iptables, if you use host network, should not be a problem. Otherwise, you might need to configure your network isolator properly) But we haven't tested. Another potential thing that might come up is the code that rely on hostname of the agent (MachineID in maintenance primitive?) - Jie On Fri, Dec 9, 2016 at 12:11 PM, Charles Allen < charles.allen@metamarkets.com> wrote: > Is it possible to setup a machine such that multiple mesos agents are > running on the same machine and registering with the same master? > > For example, with different cgroup roots or different default working > directory. > --047d7bfcf59a5b08c505433f6ec9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Charles,

It should be possible. Here ar= e the global 'object' that might conflict:
1) cgroup (you= can use different cgroup root)
2) work_dir and runime_dir (you c= an set them to be different between agents)
3) network (e.g., ipt= ables, if you use host network, should not be a problem. Otherwise, you mig= ht need to configure your network isolator properly)

But we haven't tested. Another potential thing that might come up is= the code that rely on hostname of the agent (MachineID in maintenance prim= itive?)

- Jie

On Fri, Dec 9, 2016 at 12:11 PM, Charles A= llen <charles.allen@metamarkets.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
Is it possible to setup a ma= chine such that multiple mesos agents are running on the same machine and r= egistering with the same master?

For example, with diffe= rent cgroup roots or different default working directory.

--047d7bfcf59a5b08c505433f6ec9--