Marathon

Marathon is a production-grade container orchestration platform for Mesosphere’s Datacenter Operating System (DC/OS) and Apache Mesos.

Requirements

Apache Mesos
Apache Zookeeper
JDK

Download package

curl -O http://downloads.mesosphere.com/marathon/v1.5.1/marathon-1.5.1.tgz

Untar

tar -zxvf marathon-1.5.1.tgz

Start marathon

Before you can start marathon, you should add /marathon to your zookeeper cluster

./bin/marathon --master zk://mesos-master:2181,mesos-agent:2181,mesos-agent-1:2181/mesos --zk zk://mesos-master:2181,mesos-agent:2181,mesos-agent-1:2181/marathon

You can access http://mesos-master:8080/

Test deployment

{
	"id": "/nginx",
	"container": {
		"type": "DOCKER",
		"docker": {
			"image": "nginx",
			"network": "HOST",
			"parameters": [],
			"privileged": false,
			"forcePullImage": false
		}
	},
	"cpus": 0.1,
	"mem": 32.0,
	"instances": 1
}

How to delete marathon in mesos:

curl -X POST http://your_mesos:5050/master/teardown -d 'frameworkId=23423-23423-234234-234234'