Slide 1

Slide 1 text

Unikernels and the benefits of modularity … on behalf of all the hoopy froods! GlueCon 25 May 2016 @amirmc Amir Chaudhry

Slide 2

Slide 2 text

Unikernels and the benefits of modularity @amirmc amirchaudhry.com/gluecon2016

Slide 3

Slide 3 text

About me @amirmc Work at Docker I have more hair on my face since this pic

Slide 4

Slide 4 text

Software today… @amirmc

Slide 5

Slide 5 text

…is an application … Software today… @amirmc

Slide 6

Slide 6 text

…is an application … … on top of an Operating System. Software today… @amirmc

Slide 7

Slide 7 text

Software today… @amirmc

Slide 8

Slide 8 text

Software today… @amirmc

Slide 9

Slide 9 text

Code you care about Code the OS insists you need @amirmc

Slide 10

Slide 10 text

Code you care about Code the OS insists you need @amirmc

Slide 11

Slide 11 text

Software today… … is built locally… @amirmc

Slide 12

Slide 12 text

Software today… … is built locally… … but deployed remotely… @amirmc

Slide 13

Slide 13 text

Software today… … is built locally… … but deployed remotely… @amirmc … very remotely.

Slide 14

Slide 14 text

Software today… …is complex! Even though most apps
 are single-purpose @amirmc

Slide 15

Slide 15 text

Complexity is the enemy… More pieces -> tricky config Duplication -> inefficiency Large sizes -> long boot times More stuff -> larger attack surface @amirmc

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Things are getting easier

Slide 18

Slide 18 text

BUILD Developer Workflows SHIP Registry Services RUN Management Docker Toolbox Docker Trusted Registry Docker Universal Control Plane Docker Cloud Docker Engine Ecosystem Plugins and Integrations Docker Containers as a Service Platform

Slide 19

Slide 19 text

An extreme view? Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase @amirmc

Slide 20

Slide 20 text

An extreme view? Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase Unikernels! @amirmc

Slide 21

Slide 21 text

Unikernels Model is “Just enough OS” for your specific app. https://en.wikipedia.org/wiki/Unikernel @amirmc Using a modular stack, every application is compiled into its own specialised OS, targeted for the cloud or embedded devices

Slide 22

Slide 22 text

“Unikernels and Docker?”

Slide 23

Slide 23 text

Continuum Disentangle applications from the OS Break up OS functionality into modular components Link only the system functionality your app needs Target alternative platforms from a single codebase @amirmc

Slide 24

Slide 24 text

• LING • MirageOS • OSv • Rumprun • runtime.js • ClickOS • Clive • Drawbridge • HaLVM • IncludeOS @amirmc Unikernels

Slide 25

Slide 25 text

Two broad approaches Consider legacy @amirmc Clean Slate Unikernels

Slide 26

Slide 26 text

MirageOS

Slide 27

Slide 27 text

MirageOS unikernel } @amirmc

Slide 28

Slide 28 text

MirageOS @amirmc Target different environments

Slide 29

Slide 29 text

MirageOS @amirmc

Slide 30

Slide 30 text

unikernel } MirageOS Familiar development cycle Broad deployment scenarios @amirmc

Slide 31

Slide 31 text

unikernel } MirageOS Familiar development cycle Broad deployment scenarios Target different environments Your usual tools @amirmc

Slide 32

Slide 32 text

Demo:
 Build on a Mac
 Deploy to IoT @amirmc

Slide 33

Slide 33 text

• Build and run an app in a Linux container • Retarget app for ARM backend • Deploy artefact onto an ARM device @amirmc

Slide 34

Slide 34 text

Demo:
 2048 game

Slide 35

Slide 35 text

Demo
 Guide 1 2 3 4

Slide 36

Slide 36 text

• Built and ran an app in a Linux container! • Retargeted app for ARM backend! • Deployed artefact onto an ARM device! @amirmc

Slide 37

Slide 37 text

Unikernel Recap • Highly specialised • Continuum with containers • Deploy to ARM devices • Everything’s a library! @amirmc

Slide 38

Slide 38 text

Deployments

Slide 39

Slide 39 text

Deployments

Slide 40

Slide 40 text

Systems programming is difficult?

Slide 41

Slide 41 text

… is just programming! Systems programming is difficult?

Slide 42

Slide 42 text

unikernel.org Still early days!

Slide 43

Slide 43 text

unikernel.org Still early days!

Slide 44

Slide 44 text

Questions? Thanks for listening @amirmc