Jul 14, 2015
SRI RAJAN
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
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
OnMetal
We all want the same thing
MULTI-TENANT CLOUD
ELASTIC
+ COLOCATION
SIMPLE TO SCALE
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
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
§ Anything that needs close to hardware performance § Databases, analytics, Caching
§ Predictable performance
§ Containers
KEY WORKLOADS
§ Built on top of OpenStack Ironic
§ Based on OCP(Open Compute Platform)
OnMetal FEATURES
§ 10G networking
§ Disks are raw & unformatted volumes
OnMetal FEATURES
§ Decontamination of boxes after customers destroy an instance
§ Preparation of boxes when a customer requests a new instance
BEHIND THE SCENES
§ Rackspace-developed management agent § Agent never runs on customer instances
§ Exposes a REST API to Ironic
BEHIND THE SCENES
Does OnMetal use Hypervisor? No.
SO…
Is there full networking support? OnMetal instances have PublicNet and ServiceNet as of today. Full Cloud Networks support will come in future releases.
SO…
Is RackConnect supported? Yes.
SO…
What flavours does OnMetal support? Linux (CentOS, Fedora, Debian, Ubuntu, CoreOS) Windows (coming soon…)
SO…
Is OnMetal available in all regions? Currently it is available in IAD(US Virginia) only. Dallas and London are the next regions planned.
SO…
??? SO…
DEMO TIME
CONTAINERS
Sounds familiar
BSD jails Solaris Zones
AIX Wpar
OpenVZ
LXC
OpenVMS Container
SO WHATS NEW?
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
TIME TO BLAME GOOGLE !
“GOOGLE IS BEHIND ALL THIS. WE ARE JUST
REIMPLEMENTING GOOGLE'S INFRASTRUCTURE”
Alex Polvi (@polvi)
A CONTAINER ENGINE
§ Portability
§ Application centric (no wonder Dev’s love it)
§ Versioning of application state
§ Reusability
DOCKER PROMISES
§ Started as an internal project for DotCloud
§ Open sourced in March 2013
§ Originally in Python and used LXC
DOCKER FACTS
§ 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
§ 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
DOCKER LAYERS
§ Designed to run one process
§ Let’s reflect on this
§ Not quite true
DOCKER SINGLE PROCESS
§ Persistent data should be stored elsewhere § Database § Bind mounts to host
§ Moves the problem of state outside the container
DOCKER: WHERE IS THE DATA?
§ Hub.docker.com § Push/Pull images § Git again?
DOCKER: REGISTRY
Docker – Ecosystem
Image Credit: http://blog.docker.com/wp-content/uploads/2013/10/ecosystem2.jpg
§ Loads of potential to be disruptive
§ Where can it improve? § Management utilities § Networking § Security
DOCKER: IS IT READY?
§ Best fit § Microservices § Stateless applications § Speeding development process
(CI etc) § “PaaSish” systems
DOCKER: IS IT READY?
DEMO TIME
§ 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
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
github.com/srirajan/onmetal-docker/
bt.ly/rs-onmetal-docker
THANK YOU www.rackspace.co.uk/devops