Provides this Docker Swarm Image for some extra functions related with Swarm on Mesos.
846
Currently, Swarm on Mesos integration is experimental, and does not support some main features of Mesos. This image is built based on Swarm v 1.1.3, and with some extra functions as below:
Supports to register to Mesos with a specified role.
Supports to use reserved resources on Mesos.
The design proposal is to use the reserved resource firstly by default, if the reserved resoruces are not enought to create a contianer, then will use the unreserved resource for the gap. This behaviour could eventually be configurable by end user (use unreserved resources or reserved resources firstly), although we may want to avoid providing that option until we see a valid use case.
Supports to use the revocable resources on Mesos.
Refer to https://github.com/qianzhangxa/swarm/blob/master/cluster/mesos/use-mesos-revocable-resource-proposal.md for the detailed proposals.
Enhance docker info to show the resource type: regular(reserved/unreserved) or revocable.
Specify mesos.enablerevocable=true to enable Swarm to receive the revocable resources on Mesos.
Specify mesos.role=sales to register Mesos with the specified role sales.
docker run -d \
--net=host gradywang/swarm-mesos \
--debug manage \
-c mesos-experimental \
--cluster-opt mesos.address=9.111.255.10 \
--cluster-opt mesos.tasktimeout=10s \
--cluster-opt mesos.user=root \
--cluster-opt mesos.offertimeout=10m \
--cluster-opt mesos.port=3375 \
--cluster-opt mesos.enablerevocable=true \
--cluster-opt mesos.role=sales \
--host=0.0.0.0:4375 zk://gradyzk.wyq.com:2181/mesos
docker -H gradyswarm.wyq.com:4375 run -d \
--cpu-shares 2 ubuntu:14.04 sleep 100
or
docker -H gradyswarm.wyq.com:4375 run -d \
-e constraint:res-type==regular \
--cpu-shares 2 ubuntu:14.04 sleep 100
docker -H gradyswarm.wyq.com:4375 run -d \
-e constraint:res-type==~regular \
--cpu-shares 2 ubuntu:14.04 sleep 100
docker -H gradyswarm.wyq.com:4375 run -d \
-e constraint:res-type==revocable \
--cpu-shares 2 ubuntu:14.04 sleep 100
docker -H gradyswarm.wyq.com:4375 run -d \
-e constraint:res-type==~revocable \
--cpu-shares 2 ubuntu:14.04 sleep 100
Yongqiao Wang: Mail: [email protected] Weichat:gradyYQwang
Content type
Image
Digest
Size
4.5 MB
Last updated
over 10 years ago
docker pull mesostest/swarm-mesos