Slide 1

Slide 1 text

© 2015 Mesosphere, Inc. All Rights Reserved. MANAGING CONTAINERS: REQUIREMENTS, OPTIONS AND BEST PRACTICES 1 Michael Hausenblas | Docker Katowice | 2015-12-16

Slide 2

Slide 2 text

© 2015 Mesosphere, Inc. All Rights Reserved. sys admin devops developer architect management other

Slide 3

Slide 3 text

© 2015 Mesosphere, Inc. All Rights Reserved. WHAT IS
 CONTAINER ORCHESTRATION? 3

Slide 4

Slide 4 text

© 2015 Mesosphere, Inc. All Rights Reserved. WHAT DOES A SCHEDULER DO? 4

Slide 5

Slide 5 text

© 2015 Mesosphere, Inc. All Rights Reserved. 5

Slide 6

Slide 6 text

© 2015 Mesosphere, Inc. All Rights Reserved. 6

Slide 7

Slide 7 text

© 2015 Mesosphere, Inc. All Rights Reserved. CONTENDERS 7 • Docker Swarm • Kubernetes • Apache Mesos+Marathon • Nomad • Firmament

Slide 8

Slide 8 text

© 2015 Mesosphere, Inc. All Rights Reserved. DOCKER SWARM 8

Slide 9

Slide 9 text

© 2015 Mesosphere, Inc. All Rights Reserved. DOCKER SWARM 9 http://www.slideshare.net/snrism/swarm-container-cluster-service

Slide 10

Slide 10 text

© 2015 Mesosphere, Inc. All Rights Reserved. KUBERNETES 10

Slide 11

Slide 11 text

© 2015 Mesosphere, Inc. All Rights Reserved. KUBERNETES 11 http://k8s.info/cs.html

Slide 12

Slide 12 text

© 2015 Mesosphere, Inc. All Rights Reserved. KUBERNETES 12 http://k8s.info/cs.html

Slide 13

Slide 13 text

© 2015 Mesosphere, Inc. All Rights Reserved. APACHE MESOS+ MARATHON 13

Slide 14

Slide 14 text

© 2015 Mesosphere, Inc. All Rights Reserved. APACHE MESOS + MARATHON 14 http://mesos.berkeley.edu/mesos_tech_report.pdf Marathon
 scheduler Spark
 scheduler Spark
 executor Marathon
 executor Spark
 executor Marathon
 executor Mesos Agent Mesos Agent Mesos Agent Mesos
 Master Standby
 Master Standby
 Master Framework

Slide 15

Slide 15 text

© 2015 Mesosphere, Inc. All Rights Reserved. MARATHON
 APP SPEC 15 { "id": "webserver", "cmd": "python3 -m http.server 8080", "cpus": 0.5, "mem": 32.0, "container": { "type": "DOCKER", "docker": { "image": "python:3", "network": "BRIDGE", "portMappings": [ { "containerPort": 8080, "hostPort": 0 } ] } }, "acceptedResourceRoles": [ "slave_public" ], "constraints": [ [ "hostname", "UNIQUE" ] ] }

Slide 16

Slide 16 text

© 2015 Mesosphere, Inc. All Rights Reserved. MARATHON UI/UX 16

Slide 17

Slide 17 text

© 2015 Mesosphere, Inc. All Rights Reserved. NOMAD 17

Slide 18

Slide 18 text

© 2015 Mesosphere, Inc. All Rights Reserved. NOMAD 18 https://www.nomadproject.io/docs/internals/architecture.html

Slide 19

Slide 19 text

© 2015 Mesosphere, Inc. All Rights Reserved. NOMAD 19 https://www.nomadproject.io/docs/internals/scheduling.html

Slide 20

Slide 20 text

© 2015 Mesosphere, Inc. All Rights Reserved. FIRMAMENT 20

Slide 21

Slide 21 text

© 2015 Mesosphere, Inc. All Rights Reserved. FIRMAMENT 21 http://www.firmament.io/

Slide 22

Slide 22 text

© 2015 Mesosphere, Inc. All Rights Reserved. FIRMAMENT 22 http://www.firmament.io/

Slide 23

Slide 23 text

© 2015 Mesosphere, Inc. All Rights Reserved. STATEFUL SERVICES 23

Slide 24

Slide 24 text

© 2015 Mesosphere, Inc. All Rights Reserved. STATEFUL SERVICES 24 # a stateless, centralized service cat /dev/random # a stateless, distributed service http PUT http://1.2.3.4:8080/v2/apps < app.json # a stateful, centralized service echo 'lolwut' > ./some.dat # a stateful, distributed service hadoop fs -put ./some.dat hdfs:///user/me/some.dat

Slide 25

Slide 25 text

© 2015 Mesosphere, Inc. All Rights Reserved. STATEFUL SERVICES 25

Slide 26

Slide 26 text

© 2015 Mesosphere, Inc. All Rights Reserved. STATEFUL SERVICES: EXPERIMENT 26

Slide 27

Slide 27 text

© 2015 Mesosphere, Inc. All Rights Reserved. OK SMARTY-PANTS, WHICH CONTAINER MANAGEMENT SYSTEM SHOULD I USE? 27

Slide 28

Slide 28 text

© 2015 Mesosphere, Inc. All Rights Reserved. 28 I don't really mind, just DON'T WRITE IT YOURSELF. Pretty please. With sugar on top of it.

Slide 29

Slide 29 text

© 2015 Mesosphere, Inc. All Rights Reserved. 29

Slide 30

Slide 30 text

© 2015 Mesosphere, Inc. All Rights Reserved. 30 COMPARISON

Slide 31

Slide 31 text

© 2015 Mesosphere, Inc. All Rights Reserved. 31 COMPARISON

Slide 32

Slide 32 text

© 2015 Mesosphere, Inc. All Rights Reserved. 32 Use Marathon, Kubernetes, etc. >>
 write your own container manager >>
 manually managing containers http://www.cloudtp.com/2015/11/30/docker-container-landscape/

Slide 33

Slide 33 text

© 2015 Mesosphere, Inc. All Rights Reserved. HANDS-ON 33

Slide 34

Slide 34 text

© 2015 Mesosphere, Inc. All Rights Reserved. LEARNING RESOURCES 34

Slide 35

Slide 35 text

© 2015 Mesosphere, Inc. All Rights Reserved. 35 WHERE CAN
 I LEARN MORE? http://shop.oreilly.com/product/9781939902184.do 35 http://shop.oreilly.com/product/0636920035671.do

Slide 36

Slide 36 text

© 2015 Mesosphere, Inc. All Rights Reserved. 36 WHERE CAN
 I LEARN MORE? http://shop.oreilly.com/product/0636920039952.do https://manning.com/books/mesos-in-action 36

Slide 37

Slide 37 text

© 2015 Mesosphere, Inc. All Rights Reserved. 37 WHERE CAN
 I LEARN MORE? 37 http://shop.oreilly.com/product/0636920043874.do http://www.oreilly.com/webops-perf/free/kubernetes.csp http://mhausenblas.info/dnsd/toc.pdf

Slide 38

Slide 38 text

© 2015 Mesosphere, Inc. All Rights Reserved. 38 WHERE CAN
 I LEARN MORE? http://p24e.io 38 http://k8s.info