mesos-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heller, Chris" <chel...@akamai.com>
Subject Re: Running a Marathon Task on every active slave
Date Tue, 11 Nov 2014 14:01:52 GMT
If you are OK with a fixed number of slaves. You could set the number of
instances equal to the number of slaves, and then set the constraints of the
job to: "constraints": [[ "hostname", "UNIQUE" ]].

-Chris

From:  Leigh Martell <leigh@immun.io>
Reply-To:  "user@mesos.apache.org" <user@mesos.apache.org>
Date:  Tuesday, November 11, 2014 at 8:56 AM
To:  "user@mesos.apache.org" <user@mesos.apache.org>
Subject:  Re: Running a Marathon Task on every active slave

Hey David,
  Yes"ish" from my understanding with the host name constraint(to restrict 1
per host) you can do this but you will need prior knowledge of the amount of
slaves. Here is my reference
https://mesosphere.github.io/marathon/docs/constraints.html

Hope that helps!

-Leigh

On Tue, Nov 11, 2014 at 9:31 AM, David J. Palaitis
<david.j.palaitis@gmail.com> wrote:
> I'd like to have Marathon keep a single, running instance of my command on
> every active slave in the cluster. Is it possible?




Mime
View raw message