3

We have multiple kinds of applications running on the same Mesos-Marathon cluster. The applications can be classified into very loosely coupled categories and can almost run separately. They are running on the same cluster considering the easiness to provision, maintenance of the cluster, re-use of CI/CD pipelines etc. However, is there a mechanism to statically partition the number of slaves in the cluster so that a group of these applications are provisioned on a set of slaves and the other group on another set.

Phelodas
  • 2,903
  • 5
  • 18
  • 30

1 Answers1

2

You could use Mesos custom attributes for that which in turn get used by Marathon via constraints.

From the Marathon documentation on constraints:

Constraints control where apps run to allow optimizing for either fault tolerance (by spreading a task out on multiple nodes) or locality (by running all of an applications tasks on the same node). Constraints have three parts: a field name, an operator, and an optional parameter. The field can be the hostname of the agent node or any attribute of the agent node.

Till
  • 27,364
  • 13
  • 84
  • 120