Last active
August 29, 2015 14:10
-
-
Save stuart-warren/b99aeb00120812109cd2 to your computer and use it in GitHub Desktop.
CoreOS Mesos notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# May need to use a better zookeeper container capable of clustering | |
# https://github.com/signalfuse/docker-zookeeper ? | |
docker run -d -p 2181:2181 -p 2888:2888 -p 3888:3888 jplock/zookeeper | |
# See this for other config values | |
# http://mesos.apache.org/documentation/latest/configuration/ | |
docker run -d \ | |
-e MESOS_LOG_DIR=/var/log \ | |
-e MESOS_ZK=zk://172.17.8.101:2181/mesos \ | |
-e MESOS_WORK_DIR=/tmp \ | |
-e MESOS_QUORUM=1 \ | |
-e MESOS_IP=172.17.8.101 \ | |
-p 5050:5050 \ | |
--net="host" \ | |
redjack/mesos-master | |
docker run -d \ | |
-e MESOS_LOG_DIR=/var/log \ | |
-e MESOS_MASTER=172.17.8.101:5050 \ | |
-e MESOS_IP=172.17.8.101 \ | |
-e MESOS_CONTAINERIZERS="docker" \ | |
-e MESOS_EXECUTOR_REGISTRATION_TIMEOUT="10mins" \ | |
--net="host" \ | |
-p 5051:5051 \ | |
-v /usr/bin/docker:/usr/bin/docker \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /usr/lib/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 \ | |
-v /sys:/sys \ | |
--privileged \ | |
redjack/mesos-slave | |
docker run -d \ | |
-p 8080:8080 \ | |
mesosphere/marathon \ | |
--task_launch_timeout 600000 \ | |
--master 172.17.8.101:5050 \ | |
--zk zk://172.17.8.101:2181/marathon | |
# See this to spin up docker instances | |
# https://mesosphere.com/docs/tutorials/launch-docker-container-on-mesosphere/ | |
# https://mesosphere.github.io/marathon/docs/native-docker.html | |
# | |
# https://mesosphere.github.io/marathon/docs/service-discovery-load-balancing.html | |
# | |
{ | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "libmesos/ubuntu" | |
} | |
}, | |
"env": { | |
"key": "value" | |
}, | |
"id": "ubuntu", | |
"instances": "1", | |
"cpus": "0.1", | |
"mem": "256", | |
"uris": [], | |
"cmd": "while sleep 10; do date -u +%T; done" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://emmanuel.gomez.io/2014/07/configuring-zookeeper-on-coreos--zk-and-kafka-part-1.html