It's the End of the Cloud as We Know It

91
IT’S THE END OF THE CLOUD AS WE KNOW IT MATT STINE COMMUNITY ENGINEER, CLOUD FOUNDRY [email protected] HTTP://WWW.CLOUDFOUNDRY.COM TWITTER: @MSTINE

description

Why PaaS in general, and Cloud Foundry in particular, provides the necessary tools to change the way we develop and deploy applications.

Transcript of It's the End of the Cloud as We Know It

Page 1: It's the End of the Cloud as We Know It

IT’S THE END OF THE CLOUD AS WE KNOW IT

MATT STINECOMMUNITY ENGINEER, CLOUD FOUNDRY

[email protected]://WWW.CLOUDFOUNDRY.COM

TWITTER: @MSTINE

Page 2: It's the End of the Cloud as We Know It

IT STARTS WITH AN EARTHQUAKE...

2006

Page 3: It's the End of the Cloud as We Know It

...BIRDS...SNAKES...AN AEROPLANE...

Page 4: It's the End of the Cloud as We Know It

...LENNY BRUCE IS NOT AFRAID.

Page 5: It's the End of the Cloud as We Know It

PaaSTHE GREAT ENABLER

Page 6: It's the End of the Cloud as We Know It

C10KThe

Problem

Page 7: It's the End of the Cloud as We Know It
Page 8: It's the End of the Cloud as We Know It
Page 9: It's the End of the Cloud as We Know It

MULTICLOUD?

Page 10: It's the End of the Cloud as We Know It

“NON-FUNCTIONAL”•Scale Up/Down

•Health

•Security

•Promotion

•Logging

•Metrics

Page 11: It's the End of the Cloud as We Know It

SERVICES

Page 12: It's the End of the Cloud as We Know It
Page 13: It's the End of the Cloud as We Know It

* An actual application provisioning/update flow in a large enterprise. Image is blurred for privacy reasons

Page 14: It's the End of the Cloud as We Know It
Page 15: It's the End of the Cloud as We Know It

...LENNY BRUCE IS NOT AFRAID.

Page 16: It's the End of the Cloud as We Know It

HELLO WORLDLet’s PUSH some APPS!

Page 17: It's the End of the Cloud as We Know It

Java/Spring

Page 18: It's the End of the Cloud as We Know It

Java/Spring

Page 19: It's the End of the Cloud as We Know It

DEMO

Page 20: It's the End of the Cloud as We Know It

Ruby

Gemfile

Page 21: It's the End of the Cloud as We Know It

Ruby

config.ru

Page 22: It's the End of the Cloud as We Know It

Ruby

app.rb

Page 23: It's the End of the Cloud as We Know It

DEMO

Page 24: It's the End of the Cloud as We Know It

Node.js

package.json

Page 25: It's the End of the Cloud as We Know It

Node.js

server.js

Page 26: It's the End of the Cloud as We Know It

DEMO

Page 27: It's the End of the Cloud as We Know It

SERVICE BINDING

Page 28: It's the End of the Cloud as We Know It
Page 29: It's the End of the Cloud as We Know It

https://github.com/cloudfoundry-samples/spring-music

Page 30: It's the End of the Cloud as We Know It

SpringApplicationContextInitializer.java

Page 31: It's the End of the Cloud as We Know It
Page 32: It's the End of the Cloud as We Know It
Page 33: It's the End of the Cloud as We Know It
Page 34: It's the End of the Cloud as We Know It

DEMO

Page 35: It's the End of the Cloud as We Know It

BUILDPACKS

Page 36: It's the End of the Cloud as We Know It

https://blog.heroku.com/archives/2012/7/17/buildpacks

Page 37: It's the End of the Cloud as We Know It

http://docs.cloudfoundry.com/docs/using/deploying-apps/buildpacks.html

Page 38: It's the End of the Cloud as We Know It

PLATFORM

JAVA BUILDPACK RUBY BUILDPACK NODE.JS BUILDPACK

APPLICATION APPLICATION APPLICATION

Page 39: It's the End of the Cloud as We Know It

https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks

Page 40: It's the End of the Cloud as We Know It
Page 41: It's the End of the Cloud as We Know It

detect

Page 42: It's the End of the Cloud as We Know It

compile

Page 43: It's the End of the Cloud as We Know It

release

Page 44: It's the End of the Cloud as We Know It
Page 45: It's the End of the Cloud as We Know It
Page 46: It's the End of the Cloud as We Know It
Page 47: It's the End of the Cloud as We Know It
Page 48: It's the End of the Cloud as We Know It
Page 49: It's the End of the Cloud as We Know It
Page 50: It's the End of the Cloud as We Know It
Page 51: It's the End of the Cloud as We Know It

DEMO

Page 52: It's the End of the Cloud as We Know It

PLACES TO PUT YOUR STUFF!

Page 53: It's the End of the Cloud as We Know It

ORGANIZATIONS

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

Page 54: It's the End of the Cloud as We Know It

USERS

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

Page 55: It's the End of the Cloud as We Know It

DOMAINS

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

mktg.acme.com finance.acme.com eng.acme.com

Page 56: It's the End of the Cloud as We Know It

SPACES

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

TESTDEV PROD TESTDEV PROD TESTDEV PROD

Page 57: It's the End of the Cloud as We Know It

APPS & SERVICES

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

TESTDEV PROD TESTDEV PROD TESTDEV PROD

A S S S A S A S A A A

Page 58: It's the End of the Cloud as We Know It

ROUTES

PLATFORM

MARKETING ORG FINANCE ORG ENGINEERING ORG

TESTDEV PROD TESTDEV PROD TESTDEV PROD

A S S S A S A S A A A

ROUTER

app1

.mktg

.acme.c

om

app3

.fina

nce.

acm

e.co

m

app2.eng.acme.com

Page 59: It's the End of the Cloud as We Know It

PROMOTION PIPELINE

Page 60: It's the End of the Cloud as We Know It

MARKETING ORG

TESTDEV PROD

SA S S

Page 61: It's the End of the Cloud as We Know It

MARKETING ORG

TESTDEV PROD

SA S SA

Page 62: It's the End of the Cloud as We Know It

MARKETING ORG

TESTDEV PROD

SA S SA A

Page 63: It's the End of the Cloud as We Know It

DEMO

Page 64: It's the End of the Cloud as We Know It

SCALING

Page 65: It's the End of the Cloud as We Know It

VM

Router

AppApp

Page 66: It's the End of the Cloud as We Know It

VM

Router

AppApp

VM

App

VM

App

Page 67: It's the End of the Cloud as We Know It

SCALING TO N

•$$$$$$

•Inefficient

•Slow

Page 68: It's the End of the Cloud as We Know It

DEA/Warden

Router

App

App

AppApp

DEA/Warden

Page 69: It's the End of the Cloud as We Know It
Page 70: It's the End of the Cloud as We Know It

DEMO

Page 71: It's the End of the Cloud as We Know It

HEALTH MANAGER

Page 72: It's the End of the Cloud as We Know It

App

App

App

DesiredState

App

App

App

ActualState

HARMONIZER

CloudController

DEA

NATSBulk API

SCHEDULER

NUDGER

NATS

NATS

Observes Observes

Schedule Observation

TriggerHarmonization

HealthManager

Page 73: It's the End of the Cloud as We Know It
Page 74: It's the End of the Cloud as We Know It

DEMO

Page 75: It's the End of the Cloud as We Know It

BLUE-GREEN DEPLOYMENTS

Page 76: It's the End of the Cloud as We Know It

APP DEPLOYMENT

•Cut-over is TRICKY!

•Must be QUICK!

Page 77: It's the End of the Cloud as We Know It

BLUE-GREEN•Ensure parallel existence of 2 identical

environments

•At time t, only one (blue) services traffic

•New deployments made to other (green) environment

•When ready, route traffic to green

•Stop routing traffic to blue

Page 78: It's the End of the Cloud as We Know It

BLUE PUSH AND MAP

ROUTER BLUE-APPblue-app.cfapps.io

app.cfapps.io

Page 79: It's the End of the Cloud as We Know It

GREEN PUSH

ROUTER BLUE-APP

GREEN-APP

app.cfapps.io

green-app.cfapps.io

blue-app.cfapps.io

Page 80: It's the End of the Cloud as We Know It

GREEN MAP

ROUTER BLUE-APP

GREEN-APP

app.cfapps.io

green-app.cfapps.io

blue-app.cfapps.io

app.cfapps.io

Page 81: It's the End of the Cloud as We Know It

BLUE UN-MAP

ROUTER BLUE-APP

GREEN-APP

green-app.cfapps.io

blue-app.cfapps.io

app.cfapps.io

Page 82: It's the End of the Cloud as We Know It

DEMO

Page 83: It's the End of the Cloud as We Know It

DEPLOYING CLOUD FOUNDRY!

Page 84: It's the End of the Cloud as We Know It

DEPLOYING CF

http://docs.cloudfoundry.com/docs/running/deploying-cf/

Page 85: It's the End of the Cloud as We Know It

BOSH

Page 86: It's the End of the Cloud as We Know It

BOSH

Page 87: It's the End of the Cloud as We Know It

OPEN

Page 88: It's the End of the Cloud as We Know It

http://blog.cloudfoundry.com/2013/03/07/cloud-foundry-is-open-and-pivotal/

Page 89: It's the End of the Cloud as We Know It

http://blog.cloudfoundry.com/2013/05/16/want-to-contribute-to-cloud-foundry-come-on-in/

Page 90: It's the End of the Cloud as We Know It
Page 91: It's the End of the Cloud as We Know It

THANK YOU!

MATT STINECOMMUNITY ENGINEER, CLOUD FOUNDRY

[email protected]://WWW.CLOUDFOUNDRY.COM

TWITTER: @MSTINE