Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
Bakuraku Engineering Team Deck
layerx
PRO
12
6.5k
知っていると得する!Movable Type 9 の新機能を徹底解説
masakah
0
240
コミューンのデータ分析AIエージェント「Community Sage」の紹介
fufufukakaka
0
280
私のRails開発環境
yahonda
0
190
21st ACRi Webinar - Univ of Tokyo Presentation Slide (Shinya Takamaeda)
nao_sumikawa
0
110
HIG学習用スライド
yuukiw00w
0
110
21st ACRi Webinar - Univ of Tokyo Presentation Slide (Ayumi Ohno)
nao_sumikawa
0
120
Claude Code はじめてガイド -1時間で学べるAI駆動開発の基本と実践-
oikon48
45
27k
生成AI・AIエージェント時代、データサイエンティストは何をする人なのか?そして、今学生であるあなたは何を学ぶべきか?
kuri8ive
2
2k
たかが特別な時間の終わり / It's Only the End of Special Time
watany
28
7.6k
32のキーワードで学ぶ はじめての耐量子暗号(PQC) / Getting Started with Post-Quantum Cryptography in 32 keywords
quiver
0
290
意外とあった SQL Server 関連アップデート + Database Savings Plans
stknohg
PRO
0
240
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Rails Girls Zürich Keynote
gr2m
95
14k
Visualization
eitanlees
150
16k
A better future with KSS
kneath
240
18k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
120
20k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Designing Experiences People Love
moore
143
24k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
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.!