Top Banner
41
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Unlocked 2014 onmetal and docker

SRI RAJAN

OnMetal and Docker

Page 2: Unlocked 2014 onmetal and docker

About  Me  

RACKSPACE | www.rackspace.com

ABOUT ME

•  From India •  9 years in Texas •  4+ in UK •  10+ years in IT •  7+ years Racker •  Specialties; Linux, OpenStack, Automation

linkedin.com/in/rajansriram

@sriramrajan

SRI RAJAN Principal Engineer

Page 3: Unlocked 2014 onmetal and docker

WHAT IS OnMetal? WHAT CAN I USE IT FOR?

WHY ARE CONTAINERS HOT AGAIN?

WHAT IS DOCKER? SHOULD I CARE?

AN INTRO TO DOCKER/CoreOS & DEMO

The Plan

Page 4: Unlocked 2014 onmetal and docker

OnMetal

Page 5: Unlocked 2014 onmetal and docker

We all want the same thing

MULTI-TENANT CLOUD

ELASTIC

+ COLOCATION

SIMPLE TO SCALE

Page 6: Unlocked 2014 onmetal and docker

Single-tenant bare-metal instances provisioned through the API

We all want the same thing

MULTI-TENANT CLOUD

ELASTIC

+ COLOCATION

SIMPLE TO SCALE

What is OnMetal

BARE METAL SERVERS

Page 7: Unlocked 2014 onmetal and docker

MEMORY OPTIMIZED

COMPUTE OPTIMIZED

I/O OPTIMIZED

Cores RAM Disk

20 128 GB

2x1.6 TB (Flash)

12 512 GB

32 GB SATADOM

10 32 GB 32 GB

SATADOM

INSTANCE TYPES

Page 8: Unlocked 2014 onmetal and docker

§  Anything that needs close to hardware performance §  Databases, analytics, Caching

§  Predictable performance

§  Containers

KEY WORKLOADS

Page 9: Unlocked 2014 onmetal and docker

§  Built on top of OpenStack Ironic

§  Based on OCP(Open Compute Platform)

OnMetal FEATURES

Page 10: Unlocked 2014 onmetal and docker

§  10G networking

§  Disks are raw & unformatted volumes

OnMetal FEATURES

Page 11: Unlocked 2014 onmetal and docker

§  Decontamination of boxes after customers destroy an instance

§  Preparation of boxes when a customer requests a new instance

BEHIND THE SCENES

Page 12: Unlocked 2014 onmetal and docker

§  Rackspace-developed management agent §  Agent never runs on customer instances

§  Exposes a REST API to Ironic

BEHIND THE SCENES

Page 13: Unlocked 2014 onmetal and docker

Does OnMetal use Hypervisor? No.

SO…

Page 14: Unlocked 2014 onmetal and docker

Is there full networking support? OnMetal instances have PublicNet and ServiceNet as of today. Full Cloud Networks support will come in future releases.

SO…

Page 15: Unlocked 2014 onmetal and docker

Is RackConnect supported? Yes.

SO…

Page 16: Unlocked 2014 onmetal and docker

What flavours does OnMetal support? Linux (CentOS, Fedora, Debian, Ubuntu, CoreOS) Windows (coming soon…)

SO…

Page 17: Unlocked 2014 onmetal and docker

Is OnMetal available in all regions? Currently it is available in IAD(US Virginia) only. Dallas and London are the next regions planned.

SO…

Page 18: Unlocked 2014 onmetal and docker

??? SO…

Page 19: Unlocked 2014 onmetal and docker

DEMO TIME

Page 20: Unlocked 2014 onmetal and docker

CONTAINERS

Page 21: Unlocked 2014 onmetal and docker

Sounds familiar

BSD jails Solaris Zones

AIX Wpar

OpenVZ

LXC

OpenVMS Container

Page 22: Unlocked 2014 onmetal and docker

SO WHATS NEW?

Page 23: Unlocked 2014 onmetal and docker

Imag

e C

redi

t: ht

tp://

api.n

ing.

com

/file

s/Y

mro

AX

oonP

-3Q

GH

KTM

QK

9GC

FAjf7

GD

td8-

wH

s0i-

I5Q

aSZx

093J

*F6K

ZyiQ

2X3D

cmiY

oiD

ciof

TMYo

6GjK

0MX

pR0z

W-jv

Vm

G/ti

min

g.jp

g

Page 24: Unlocked 2014 onmetal and docker

TIME TO BLAME GOOGLE !

“GOOGLE IS BEHIND ALL THIS. WE ARE JUST

REIMPLEMENTING GOOGLE'S INFRASTRUCTURE”

Alex Polvi (@polvi)

Page 25: Unlocked 2014 onmetal and docker

A CONTAINER ENGINE

Page 26: Unlocked 2014 onmetal and docker

§  Portability

§  Application centric (no wonder Dev’s love it)

§  Versioning of application state

§  Reusability

DOCKER PROMISES

Page 27: Unlocked 2014 onmetal and docker

§  Started as an internal project for DotCloud

§  Open sourced in March 2013

§  Originally in Python and used LXC

DOCKER FACTS

Page 28: Unlocked 2014 onmetal and docker

§  In 2014, dropped LXC and moved to libcontainer and also to Go

§  In Oct 2014, Microsoft announced integration with Docker with Windows Server

DOCKER FACTS

Page 29: Unlocked 2014 onmetal and docker

§  LXC containers are lightweight VMs §  Docker aims to run a single app §  No init and no daemons, cron, etc.

§  LXC supports unprivileged containers §  Docker does not

§  The origins are similar but they are increasingly growing apart

DOCKER Vs LXC

Page 30: Unlocked 2014 onmetal and docker

DOCKER LAYERS

Page 31: Unlocked 2014 onmetal and docker

§  Designed to run one process

§  Let’s reflect on this

§  Not quite true

DOCKER SINGLE PROCESS

Page 32: Unlocked 2014 onmetal and docker

§  Persistent data should be stored elsewhere §  Database §  Bind mounts to host

§  Moves the problem of state outside the container

DOCKER: WHERE IS THE DATA?

Page 33: Unlocked 2014 onmetal and docker

§  Hub.docker.com §  Push/Pull images §  Git again?

DOCKER: REGISTRY

Page 34: Unlocked 2014 onmetal and docker

Docker – Ecosystem

Image Credit: http://blog.docker.com/wp-content/uploads/2013/10/ecosystem2.jpg

Page 35: Unlocked 2014 onmetal and docker

§  Loads of potential to be disruptive

§  Where can it improve? §  Management utilities §  Networking §  Security

DOCKER: IS IT READY?

Page 36: Unlocked 2014 onmetal and docker

§  Best fit §  Microservices §  Stateless applications §  Speeding development process

(CI etc) §  “PaaSish” systems

DOCKER: IS IT READY?

Page 37: Unlocked 2014 onmetal and docker

DEMO TIME

Page 38: Unlocked 2014 onmetal and docker

§  An innovating take on operating system.

§  Forked from ChromeOS. (Blame Google again.)

§  Minimalistic & Simple. §  No package management. §  Intimate with Docker. §  Maximises reliability. §  Patches are automatically applied.

CORE OS

Page 39: Unlocked 2014 onmetal and docker

ONMETAL

CORE OS

ONMETAL ONMETAL

CORE OS CORE OS

CLUSTER MANAGEMENT

(FLEET) ETCD

SOME HELPERS

CLOUD LOAD BALANCER

DOCKER DOCKER

DOCKER DOCKER

DOCKER DOCKER

DOCKER DOCKER

Page 40: Unlocked 2014 onmetal and docker

github.com/srirajan/onmetal-docker/

bt.ly/rs-onmetal-docker

Page 41: Unlocked 2014 onmetal and docker

THANK YOU www.rackspace.co.uk/devops