$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker Swarm Introduction
Search
Victor Vieux
December 05, 2014
Technology
3
1.6k
Docker Swarm Introduction
Docker Swarm breakout session at DockerCon EU.
Victor Vieux
December 05, 2014
Tweet
Share
More Decks by Victor Vieux
See All by Victor Vieux
What's new in Docker ?
vieux
0
140
Docker Swarm - Online Meetup [#SwarmWeek Edition]
vieux
2
1.8k
What's new in Swarm 1.1
vieux
7
1.2k
Docker Swarm on Mesos
vieux
5
600
Orchestration for Sysadmins
vieux
1
120
Docker Swarm
vieux
2
880
Docker machine, swarm and compose: the future of distributed apps
vieux
1
300
Run Any App on Mesos on Any Infrastructure Using Docker
vieux
4
1.6k
What's new in the latest Docker release and Docker Hub @ braintree
vieux
10
1.5k
Other Decks in Technology
See All in Technology
LLM-Readyなデータ基盤を高速に構築するためのアジャイルデータモデリングの実例
kashira
0
240
乗りこなせAI駆動開発の波
eltociear
1
1.1k
AWS Trainium3 をちょっと身近に感じたい
bigmuramura
1
140
今からでも間に合う!速習Devin入門とその活用方法
ismk
1
700
手動から自動へ、そしてその先へ
moritamasami
0
300
RAG/Agent開発のアップデートまとめ
taka0709
0
170
re:Inventで気になったサービスを10分でいけるところまでお話しします
yama3133
1
120
SSO方式とJumpアカウント方式の比較と設計方針
yuobayashi
7
620
MLflowで始めるプロンプト管理、評価、最適化
databricksjapan
1
210
形式手法特論:CEGAR を用いたモデル検査の状態空間削減 #kernelvm / Kernel VM Study Hokuriku Part 8
ytaka23
2
460
[CMU-DB-2025FALL] Apache Fluss - A Streaming Storage for Real-Time Lakehouse
jark
0
120
寫了幾年 Code,然後呢?軟體工程師必須重新認識的 DevOps
cheng_wei_chen
1
1.4k
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
246
13k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.2k
Testing 201, or: Great Expectations
jmmastey
46
7.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Optimizing for Happiness
mojombo
379
70k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Typedesign – Prime Four
hannesfritz
42
2.9k
We Have a Design System, Now What?
morganepeng
54
7.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Transcript
Docker Swarm! @aluzzardi - @vieux!
Demo! us-west! us-east! Docker! CLI! Docker! CLI! Docker! CLI! =!
RAM: 2GB! CPU: 1core!
Demo! us-west! us-east! =! RAM: 2GB! CPU: 1core! Docker! CLI!
Docker! CLI!
Setup! • Create a cluster:! $ swarm create • Add
nodes to a cluster:! $ swarm join --token=<token> --addr=<node_ip> • List nodes in a cluster! $ swarm list --token=<token> • Start Swarm! $ swarm manage --token=<token> --addr=<swarm_ip> ! !
Resource Management! • Memory! " " $ docker run -m
1g … • CPU! " " $ docker run -c 1 … • Ports! " " $ docker run -p 80:80 … • More to come, ex: network interfaces! ! ! !
Constraints! • Standard constraints induced from docker info! docker run
-e “constraint:operatingsystem=fedora” … " " docker run -e “constraint:storagedriver=aufs” … • Custom constraints with host labels! " " docker -d --label “region=us-east” " " docker run -e “constraint:region=us-east” … • Pin a container to a specific host! " " docker run –e “constraint:node=ubuntu-2” … • More to come, ex: affinity! !
Rescheduling! • Rescheduling policies; similar to `--restart`! • Pending status!
! ! !
Swarm scheduler! 2 steps:! ! • 1- Apply filters to
exclude nodes! " " - ports! " " - labels! " " - health! • 2- Use a strategy to pick the best node! " " - bin packing! " " - random! ! ! ! ! Contributions are welcome ☺ : !
http://github.com/docker/swarm! @aluzzardi - @vieux! Thank You.!