Practical PaaS presentation

44
Deploying Software on a Platform as a Service Cloud Foundry and Intalio|Create Hugues Malphettes
  • date post

    19-Oct-2014
  • Category

    Technology

  • view

    1.841
  • download

    1

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/

Transcript of Practical PaaS presentation

Page 1: Practical PaaS presentation

Deploying Software on a Platform as a Service

Cloud Foundry and Intalio|Create

Hugues Malphettes

Page 2: Practical PaaS presentation

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

Page 3: Practical PaaS presentation

Bob the IT guy

Page 4: Practical PaaS presentation

Louise the Developer

Page 5: Practical PaaS presentation

Intalio

What?

http://intalio.com

Enterprise Software Vendor

Deploys on the Cloud

How?

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

Page 6: Practical PaaS presentation
Page 8: Practical PaaS presentation

TOC

• History: On our way to the Cloud

• NoOps wonderland

• PaaS in action: outside / inside

• Distributed Architectures on a PaaS

Page 9: Practical PaaS presentation

•History: On our way to the Cloud

• NoOps wonderland

• PaaS in action: outside / inside

• Distributed Architectures on a PaaS

Page 10: Practical PaaS presentation

On our way to the Cloud: History

Coding Building

Page 11: Practical PaaS presentation

And then profit deploy?

Page 12: Practical PaaS presentation

Deployment isnot my problem

Customer’s Operations Department; photo-shoot

It is MY production system

Page 13: Practical PaaS presentation

Bare Metal DeploymentDIY

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

Page 14: Practical PaaS presentation

Bare Metal Deploymentgone wrong

YAGNI / DIY meets scaling

Page 15: Practical PaaS presentation

The boss POV

“What are you doing?”

“Fine :-)”

Page 16: Practical PaaS presentation

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

Page 17: Practical PaaS presentation

Cloud Or snake oil?

Marketing `delivers`the cloud right away

Embarrassed engineer:it is still software

Page 18: Practical PaaS presentation

IaaS: AWS/EC2

DebianPackage

Repository

Ubuntu VM on AWS/EC2

Page 19: Practical PaaS presentation

The boss POV

“Too complicated”

Page 20: Practical PaaS presentation

IaaS Reality Check

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

Page 21: Practical PaaS presentation

IaaS Reality Check

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

[The Boss]

Page 22: Practical PaaS presentation

• History: On our way to the Cloud

•NoOps Wonderland• PaaS in action: outside / inside

• Distributed Architecture on a PaaS

Page 23: Practical PaaS presentation

NoOps: No Operations

Code - Build - Testhttp://localhost:8080

Deployhttp://production.acme.com

Page 24: Practical PaaS presentation

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

Page 25: Practical PaaS presentation

NoOps

$$$

Page 26: Practical PaaS presentation

Choosing a PaaS

Make a requirement matrix:

• The type of clouds: public, private, hybrid

• The required runtimes and databases

• The licensing

Page 27: Practical PaaS presentation

Open Source PaaS: Cloud Foundry

http://github.com/cloudfoundry

Page 28: Practical PaaS presentation
Page 29: Practical PaaS presentation

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

Page 30: Practical PaaS presentation

• History: On our way to the Cloud

• NoOps Wonderland

•PaaS in action: outside / inside

• Distributed Architecture on a PaaS

Page 31: Practical PaaS presentation

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

Page 32: Practical PaaS presentation
Page 33: Practical PaaS presentation

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}

Page 34: Practical PaaS presentation

• History: On our way to the Cloud

• NoOps Wonderland

• PaaS in action: outside / inside

•Distributed Architecture on a PaaS

Page 35: Practical PaaS presentation

Software is distributed now

Best in class cloud architectures:

many distributed services run by many apps

multiple databases

Page 36: Practical PaaS presentation
Page 37: Practical PaaS presentation

Monolith turnedswiss army knife

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

Game: find the original app

Page 38: Practical PaaS presentation
Page 39: Practical PaaS presentation

Big Application

Overloaded Database

Page 40: Practical PaaS presentation

Deploying a set of appsand DBs with a PaaS

Intalio|Create current architecture

Page 41: Practical PaaS presentation
Page 42: Practical PaaS presentation