Docker Cookbook


| Chapter 7: The Docker Ecosystem: Tools



Download 6,31 Mb.
Pdf ko'rish
bet159/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   155   156   157   158   159   160   161   162   ...   260
Bog'liq
Docker Cookbook

196 | Chapter 7: The Docker Ecosystem: Tools


---------------------------------------------------------------------------------
vagrant_mysql_1 /entrypoint.sh mysqld Up 3306/tcp
vagrant_wordpress_1 /entrypoint.sh apache2-for ... Up 0.0.0.0:80->80/tcp
7.2 Using Docker Compose to Test Apache Mesos and
Marathon on Docker
Problem
You are interested in 
Apache Mesos
, the data center resource-allocation system used
by companies like Twitter. Mesos allows multilevel scheduling to share resources
between different types of workloads while maximizing utilization of your servers.
Before going into production with Mesos, you would like to experiment with it on a
single server.
Solution
With Docker Compose (seen in 
Recipe 7.1
), deploying Mesos on a single Docker host
with one command is straightforward.
You need to start four containers: one for 
ZooKeeper
, one for the Mesos master, one
for the Mesos slave, and one for the Mesos framework 
Marathon
. Starting these four
containers can be simplified by describing their start-up options in a YAML file that
is read by Compose. Here is a sample YAML manifest to deploy Mesos using Com‐
pose:
zookeeper:
image: garland/zookeeper
ports:

"2181:2181"

"2888:2888"

"3888:3888"
mesosmaster:
image: garland/mesosphere-docker-mesos-master
ports:

"5050:5050"
links:
- zookeeper:zk
environment:
- MESOS_ZK=zk://zk:2181/mesos
- MESOS_LOG_DIR=/var/log/mesos
- MESOS_QUORUM=1
- MESOS_REGISTRY=in_memory
- MESOS_WORK_DIR=/var/lib/mesos
marathon:
image: garland/mesosphere-docker-marathon
links:
- zookeeper:zk

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   155   156   157   158   159   160   161   162   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish