Practical PaaS presentation

Preview:

DESCRIPTION

Introduction to PaaS and demos on Cloud Foundry from a DevOps point of view. Presented at the Singapore DevOps meetup of Sept 2012: http://www.meetup.com/devops-singapore/events/80016202/

Citation preview

Deploying Software on a Platform as a Service

Cloud Foundry and Intalio|Create

Hugues Malphettes

About Hugues

• DevOps Lead at Intalio / Cloud PaaS Guru

• Jetty Committer: OSGi and friends

• Archived: Eclipse BPMN modeler

• 2000 - 2010: Silicon Valley

• 2011 - now: Singapore

Bob the IT guy

Louise the Developer

Intalio

What?

http://intalio.com

Enterprise Software Vendor

Deploys on the Cloud

How?

<spoiler>With a Platform as a Service</spoiler>

TOC

• History: On our way to the Cloud

• NoOps wonderland

• PaaS in action: outside / inside

• Distributed Architectures on a PaaS

•History: On our way to the Cloud

• NoOps wonderland

• PaaS in action: outside / inside

• Distributed Architectures on a PaaS

On our way to the Cloud: History

Coding Building

And then profit deploy?

Deployment isnot my problem

Customer’s Operations Department; photo-shoot

It is MY production system

Bare Metal DeploymentDIY

YAGNI: You Ain’t Gonna Need It (cloud)so DYI: Do It Yourself

Bare Metal Deploymentgone wrong

YAGNI / DIY meets scaling

The boss POV

“What are you doing?”

“Fine :-)”

Infrastructure as a Service

Virtualizyfy!

Intalio HQ circa 2008[Boss]: Let’s move on the cloud.No need to worry about:• Deployment• Support for multiple OSes• Support for many SQL database• Backups• Scaling

Cloud Or snake oil?

Marketing `delivers`the cloud right away

Embarrassed engineer:it is still software

IaaS: AWS/EC2

DebianPackage

Repository

Ubuntu VM on AWS/EC2

The boss POV

“Too complicated”

IaaS Reality Check

Did the promises pay?• Deployment• No need to support multiple OSes• No need to support many SQL databases• Backups• Scaling

IaaS Reality Check

“I still have a job and it is full time.But the focus is not right”

[The Boss]

• History: On our way to the Cloud

•NoOps Wonderland• PaaS in action: outside / inside

• Distributed Architecture on a PaaS

NoOps: No Operations

Code - Build - Testhttp://localhost:8080

Deployhttp://production.acme.com

NoOps wonderland• Sys Admin: ad-hoc administration

of servers

• DevOps: automation of deploymenton a virtualized infrastructure

• NoOps: Takes as granted:

• Database provisioning

• Application deployment and managementApplication Deployment and ma

NoOps

$$$

Choosing a PaaS

Make a requirement matrix:

• The type of clouds: public, private, hybrid

• The required runtimes and databases

• The licensing

Open Source PaaS: Cloud Foundry

http://github.com/cloudfoundry

Intalio is here at the moment:small impact on our apps

lots of work on customizing the PaaS

Slide borrowed from Chris Richardson’s @ vmware

• History: On our way to the Cloud

• NoOps Wonderland

•PaaS in action: outside / inside

• Distributed Architecture on a PaaS

NoOps’s Hello World

• Hello World in Ruby / Sinatra

• Read the VCAP_PORT

• vmc <target>

• vmc <login>

• vmc <push>

• vmc instances <num>

http://www.youtube.com/watch?feature=player_embedded&v=8ImZCFHyeGA

Inside The PaaS

Nginx - Load Balancer - Reverse Proxy

Nginx - Lua: Router

Droplet Execution Agent

node /var/vcap/deployed-apps/your-app-1234/apps.js

node /var/vcap/deployed-apps/your-app-1234/apps.js

http://hello.cf.com

http://dea_ip:1234 {HEADER: hello.cf.com}

• History: On our way to the Cloud

• NoOps Wonderland

• PaaS in action: outside / inside

•Distributed Architecture on a PaaS

Software is distributed now

Best in class cloud architectures:

many distributed services run by many apps

multiple databases

Monolith turnedswiss army knife

Challenges:• maintenance is hard• at $2200USD a piece it is costly to scale this

Game: find the original app

Big Application

Overloaded Database

Deploying a set of appsand DBs with a PaaS

Intalio|Create current architecture

Questions?

hmalphettes@gmail.com

Recommended