Slide 1

Slide 1 text

Unikernels! … on behalf of a merry crew: Anil Madhavapeddy, Thomas Gazagnaire, David Scott, Thomas Leonard, Richard Mortier, Magnus Skjegstad, David Sheets, Balraj Singh, Jon Crowcroft, Mindy Preston, and many others! PolyConf July 2015 @amirmc Amir Chaudhry

Slide 2

Slide 2 text

Overview Unikernels Intro Why I care Deployments / Other work • What they are • Why they matter • Example scenario
 (static websites) Unikernels @amirmc

Slide 3

Slide 3 text

Overview PM in OCaml Labs (I herd cats) Community for MirageOS (moar cats) I like systems stuff! Background: Physicist, Neuroscientist, CompSci (ish), Startups, BigCo. @amirmc

Slide 4

Slide 4 text

Software today… …is an application … @amirmc

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Software today… … is built locally… @amirmc

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Software today… … needing more tools. @amirmc

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

Why build for clouds as we do for desktops? Can we do better?

Slide 12

Slide 12 text

Can we do better? Disentangle applications from the OS Break up OS functionality into modular libraries Link only the system functionality your app needs Target alternative platforms from a single codebase @amirmc

Slide 13

Slide 13 text

The Rise of the Unikernel Unikernels are specialised virtual machine images built from a modular stack adding system libraries and configuration to application code Every application is compiled into its own specialised OS that runs on the cloud or embedded devices MirageOS @amirmc

Slide 14

Slide 14 text

MirageOS @amirmc

Slide 15

Slide 15 text

MirageOS unikernel } @amirmc

Slide 16

Slide 16 text

MirageOS unikernel } Familiar development cycle Broad deployment scenarios @amirmc

Slide 17

Slide 17 text

MirageOS Unix Develop logic MirageOS System Libs @amirmc

Slide 18

Slide 18 text

MirageOS Xen Specialise for deploy… … to multiple environments @amirmc

Slide 19

Slide 19 text

So what?

Slide 20

Slide 20 text

Example: Static websites (though applicable to any application)

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

@amirmc

Slide 23

Slide 23 text

SMALL! @amirmc 8.2MB 102 kloc 2560 kloc ~200MB No extra stuff!

Slide 24

Slide 24 text

@amirmc

Slide 25

Slide 25 text

@amirmc Pluto just considering areas of the circles :)

Slide 26

Slide 26 text

Easy deployment

Slide 27

Slide 27 text

Develop Deploy Test Heroku for Unikernels Walkthrough @amirmc …in ~100 lines of code

Slide 28

Slide 28 text

Walkthrough

Slide 29

Slide 29 text

Heroku for Unikernels General workflow @amirmc …in ~100 lines of code Develop Deploy Test

Slide 30

Slide 30 text

Deployments @amirmc

Slide 31

Slide 31 text

Trade-off (for now) @amirmc

Slide 32

Slide 32 text

Why I care @amirmc Empower individuals Distributed personal clouds Resilient, scalable systems

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Cloud Feudal Computing

Slide 35

Slide 35 text

@amirmc MirageOS (OS/application) Irmin (Storage/Sync) Signpost (Identity/Connectivity) OCaml (Safety/Modularity) Mail Contacts Calendar

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Contribute! @amirmc https://mirage.io http://nymote.org http://ocaml.org