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>
On AWS/
                              EC2



http://www.intalio.com/try-it-out
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 is
         not my problem

Customer’s Operations
Department; photo-shoot




  It is MY production system
Bare Metal Deployment
             DIY
YAGNI: You Ain’t Gonna Need It (cloud)
so DYI: Do It Yourself
Bare Metal Deployment
     gone wrong




     YAGNI / DIY meets scaling
The boss POV


“Fine :-)”


“What are
you doing?”
Infrastructure as a
            Service
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
                         Virtualizyfy!
Cloud Or snake oil?




Marketing `delivers`   Embarrassed engineer:
the cloud right away     it is still software
IaaS: AWS/EC2
 Debian
                 Ubuntu VM on
 Package
                  AWS/EC2
Repository
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 - Test               Deploy
http://localhost:8080   http://production.acme.com
NoOps wonderland
•   Sys Admin: ad-hoc administration
    of servers



•   DevOps: automation of deployment
    on a virtualized infrastructure



•   NoOps: Takes as granted:

      •   Database provisioning

      •   Application deployment and management
          Application 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
Slide borrowed from Chris
                                        Richardson’s @ vmware




    Intalio is here at the moment:
       small impact on our apps
lots of work on customizing the PaaS
• 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
http://hello.cf.com

            Nginx - Load Balancer - Reverse Proxy
                           Nginx - Lua: Router


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

                  Droplet Execution Agent

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


                node /var/vcap/deployed-apps/your-app-1234/apps.js
• 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 turned
            swiss army knife
Game: find the original app




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




Overloaded Database
Deploying a set of apps
 and DBs with a PaaS




  Intalio|Create current architecture
Questions?




hmalphettes@gmail.com
Thanks:
Stanley @ odd-e.com for brainstorming
The VMWare Cloud Foundry evangelists:
Chris Richardson, Josh Long and Rajdeep Dua.


Some ideas and slides
 compliments from Chris Richardson
http://www.slideshare.net/chris.e.richardson/from-
concept-to-cloud-cf-opentour-india

http://www.slideshare.net/chris.e.richardson/
decomposing-applications-for-deployability-and-
scalability-cfopentour-india

Practical PaaS presentation

  • 1.
    Deploying Software on aPlatform as a Service Cloud Foundry and Intalio|Create Hugues Malphettes
  • 2.
    About Hugues • DevOpsLead at Intalio / Cloud PaaS Guru • Jetty Committer: OSGi and friends • Archived: Eclipse BPMN modeler • 2000 - 2010: Silicon Valley • 2011 - now: Singapore
  • 3.
  • 4.
  • 5.
    Intalio What? http://intalio.com Enterprise Software Vendor Deploys on the Cloud How? <spoiler>With a Platform as a Service</spoiler>
  • 7.
    On AWS/ EC2 http://www.intalio.com/try-it-out
  • 8.
    TOC • History: Onour way to the Cloud • NoOps wonderland • PaaS in action: outside / inside • Distributed Architectures on a PaaS
  • 9.
    • History: Onour way to the Cloud • NoOps wonderland • PaaS in action: outside / inside • Distributed Architectures on a PaaS
  • 10.
    On our wayto the Cloud: History Coding Building
  • 11.
  • 12.
    Deployment is not my problem Customer’s Operations Department; photo-shoot It is MY production system
  • 13.
    Bare Metal Deployment DIY YAGNI: You Ain’t Gonna Need It (cloud) so DYI: Do It Yourself
  • 14.
    Bare Metal Deployment gone wrong YAGNI / DIY meets scaling
  • 15.
    The boss POV “Fine:-)” “What are you doing?”
  • 16.
    Infrastructure as a Service 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 Virtualizyfy!
  • 17.
    Cloud Or snakeoil? Marketing `delivers` Embarrassed engineer: the cloud right away it is still software
  • 18.
    IaaS: AWS/EC2 Debian Ubuntu VM on Package AWS/EC2 Repository
  • 19.
    The boss POV “Too complicated”
  • 20.
    IaaS Reality Check Didthe promises pay? • Deployment • No need to support multiple OSes • No need to support many SQL databases • Backups • Scaling
  • 21.
    IaaS Reality Check “Istill have a job and it is full time. But the focus is not right” [The Boss]
  • 22.
    • History: Onour way to the Cloud • NoOps Wonderland • PaaS in action: outside / inside • Distributed Architecture on a PaaS
  • 23.
    NoOps: No Operations Code - Build - Test Deploy http://localhost:8080 http://production.acme.com
  • 24.
    NoOps wonderland • Sys Admin: ad-hoc administration of servers • DevOps: automation of deployment on a virtualized infrastructure • NoOps: Takes as granted: • Database provisioning • Application deployment and management Application Deployment and ma
  • 25.
  • 26.
    Choosing a PaaS Makea requirement matrix: • The type of clouds: public, private, hybrid • The required runtimes and databases • The licensing
  • 27.
    Open Source PaaS:Cloud Foundry http://github.com/cloudfoundry
  • 29.
    Slide borrowed fromChris Richardson’s @ vmware Intalio is here at the moment: small impact on our apps lots of work on customizing the PaaS
  • 30.
    • History: Onour way to the Cloud • NoOps Wonderland • PaaS in action: outside / inside • Distributed Architecture on a PaaS
  • 31.
    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
  • 33.
    Inside The PaaS http://hello.cf.com Nginx - Load Balancer - Reverse Proxy Nginx - Lua: Router http://dea_ip:1234 {HEADER: hello.cf.com} Droplet Execution Agent node /var/vcap/deployed-apps/your-app-1234/apps.js node /var/vcap/deployed-apps/your-app-1234/apps.js
  • 34.
    • History: Onour way to the Cloud • NoOps Wonderland • PaaS in action: outside / inside • Distributed Architecture on a PaaS
  • 35.
    Software is distributednow Best in class cloud architectures: many distributed services run by many apps multiple databases
  • 37.
    Monolith turned swiss army knife Game: find the original app Challenges: • maintenance is hard • at $2200USD a piece it is costly to scale this
  • 39.
  • 40.
    Deploying a setof apps and DBs with a PaaS Intalio|Create current architecture
  • 43.
  • 44.
    Thanks: Stanley @ odd-e.comfor brainstorming The VMWare Cloud Foundry evangelists: Chris Richardson, Josh Long and Rajdeep Dua. Some ideas and slides compliments from Chris Richardson http://www.slideshare.net/chris.e.richardson/from- concept-to-cloud-cf-opentour-india http://www.slideshare.net/chris.e.richardson/ decomposing-applications-for-deployability-and- scalability-cfopentour-india