I'm trying to implement a lizardfs cluster using mesos/marathon. I created some docker images for that purpose.
I need to get a docker container of a certain type (lizardfs-master) NOT run on the same node that is already running another type of container (lizardfs-shadow or lizardfs-metalogger). That is, I need to run an instance of each of these three types of containers but they must not run on the same node simultaneously. They are mutually exclusive.
I don't want to restrict the nodes that can run each container. I just want to make them exclusive.
Is there any way to accomplish this in marathon, ie, using constraints? How would it be?
Thanks.