SlideShare a Scribd company logo
Cloud Foundry
The Building of the Open PaaS


         Derek Collison
         July 27, 2011
What is
Cloud Foundry?
The Open
Platform as a Service
What is
PaaS?
Or more
specifically, an
   aPaaS?
aPaaS
• Application Platform as a Service
• Applications and Services
• Not VMs, Memory, Storage, CPU
What is
OpenPaaS?
OpenPaaS
• Multi-Language
• Multi-Framework
• Multi-Services
• Multi-Cloud, Multi-IaaS
• Hybrid - Public or Private or Both
• OpenSource
OpenPaaS
•   Multi-Language
    •   Java, Scala, Ruby, Node, Erlang, PHP..

•   Multi-Framework
    •   Spring, Grails, Express, Rails, Lift, MochiWeb

•   Multi-Services
    •   MySQL, Postgres, MongoDB, Redis, RabbitMQ

•   Multi-Cloud, Multi-IaaS
    •   vSphere, OpenStack, AWS, Eucalyptus
The Open PaaS
                                                                  .js

                  Ap




                                                                         ce
                     p


                                                                                       Private
                          lic




                                                                        rfa
                                                                                       Clouds
                           at


Data Services




                                                                    te
                             io




                                                                  In
                                n
                                 Se




                                                              er
                                    r




                                                             vid
                                                                                                  …
                                     vic




                                                                              Public



                                                              o
                                         e




                                                                              Clouds

                                                           Pr
           Msg Services
                                            In
                                              te




                                                      ud
                                              rfa




                                                       o
                                                    Cl

                                                                                                 .COM
                                               ce




                                                                  Micro
                           Other Services
                                                                  Clouds
What was our Goal?
• Raise the unit of currency to the be
  the application and its associated
  services, not the infrastructure

• Best of breed delivery platform for all
  modern applications and frameworks
• Favor Choice and Openness
• Simplicity and Speed
How was it Built?
• Kernel and Orchestrator Shells
 •   Layered on top of IaaS

• Kernel
 •   Core PaaS System

• Orchestrator
 •   Creation, management and
     orchestration of the infrastructure
High Level
    Clients (VMC, STS, Browser)




             CF Kernel




           Orchestrator




               IaaS




Hardware - CPU/Memory/Disk/Network
Basic Premises
•   Assume failure
•   Optimize for MTTR, not MTBF
    •   MTTR = Mean Time To Recovery

    •   MTBF = Mean Time Between Failures

•   Fail Fast
•   Self Healing
•   Horizontally Scalable Components
•   Distributed state, No single POF
•   Should be as simple as possible
Basic Patterns
• Event-Driven
• Asynchronous
• Non-blocking
• Independent, Idempotent
• Message passing
• Eventually consistent
Basic Design
•   All components loosely coupled
    •   Few “Classes”, many “Instances”

•   Messaging as foundation
    •   Addressing and Component Discovery

    •   Command and Control

•   JSON payloads
•   HTTP or File/Blob for data transport
Kernel Components
• All dynamically discoverable
• Launch and scale in any order
• Can come and go as needed
• Monitor via HTTP and JSON
• Location independent
Kernel Components
• Router
• CloudController
• DEA
• HealthManager
• Messaging System
Logical View
                                                       Browser
VMC client    STS plugin
                                                   (user app access)



                            Routers


    CloudControllers        App              App


                                                       HealthManager
        Services                  DEA Pool



                           Messaging
Messaging
•   Addressing and Discovery
    •   No static IPs or DNS lookups req’d

    •   Just Layer 4

•   Command and Control
•   Central communication system
•   Dial tone, fire and forget
•   Protects *itself* at all costs
•   Idempotent semantics
Router
• Handles all HTTP traffic
• Maintains distributed routing state
• Routes URLs to applications
• Distributes load among instances
• Realtime distributed updates to
  routing tables from DEAs
CloudController
• Handles all state transitions
• Deals with users, apps, and services
• Packages and Stages applications
• Binds Services to Applications
• Presents external REST API
HealthManager
• Monitors the state
• Initial value with realtime delta
  updates to intended vs real
• Determines drift
• Complains to the CloudControllers
  when something is not correct
• No power to change state itself
DEA
        (Droplet Execution Agent)
•   Responsible for running all applications
•   Monitors all applications
    •   CPU, Mem, IO, Threads, Disk, FDs, etc

•   All apps look same to DEA, start and stop
•   “concept” of ability and desire to run an application
    •   runtimes, options, cluster avoidance, memory/cpu

•   Alerts on any change in state of applications
•   Provides secure/constrained OS runtime
    •   Hypervisor, Unix File and User, Linux Containers

    •   Single or Multi-Tenant
Services
•   One of the extensibility planes

•   First class citizen
•   Bound to applications

•   Can be shared
•   Services API to discover, list, and provision
•   Direct access to service after provisioned

•   Easy way to bind any service to an app
Architecture
How does it all
   work?
Pushing an App
•   Client (VMC/STS) pushes meta-data to CC
•   Client optionally pushes resource
    signatures (diff analysis, sys wide)
•   Client pushes app resources to CC
•   CC puts app together
•   CC stages app asynchronously
•   CC binds and stages services

•   Droplet ready
Architecture
Running an App
•   CC asks DEAs for “help”
•   First DEA back wins! Simple

•   CC sends start request to selected DEA
•   DEA pushes the “green” button

•   DEA waits and monitors pid and ephemeral port
    for app to bind
•   When app is healthy, sends “register” message

•   Register message is seen by HM and Routers
•   Routers bind URL to host:port
Architecture
DEAs answer?
•   DEAs first determine YES or NO
    •   correct runtime, options, memory, etc

•   Then calculate a Delay Taint
    •   SHA hash of app instance

    •   memory

    •   cpu

•   This taint allows balancing and selection
Scale up & down?
• Exact steps as running the app the
  first time
• SHA1 taint helps avoid clustering
• memory/cpu taint helps distribute as
  evenly as possible
• Nothing pre-computed or strict
Crashes?
•   If your app stops and we did not tell it
    to, that is a crash
•   Crashed apps are immediately detected
    by DEA and message sent
•   Routers disconnect route
•   HM will signal a CC that something is
    wrong
•   CC will issue run sequence again
Architecture
Access to my App?
•   All routers understand where all
    instances of your application are running
•   Will randomly pick backend, not
    semantically aware.
•   Will remove routes that are stale or
    unhealthy
•   Session stickiness and replication
    available, but best to avoid if possible
Thank You
Questions?
dcollison@vmware.com
derek.collison@gmail.com
@derekcollison

More Related Content

Similar to Cloud foundry - the building of the open paas presentation

Qcon 111122082620-phpapp02
Qcon 111122082620-phpapp02Qcon 111122082620-phpapp02
Qcon 111122082620-phpapp02Newlink
 
Cloud Foundry Introduction - Canada - October 2012
Cloud Foundry Introduction - Canada - October 2012Cloud Foundry Introduction - Canada - October 2012
Cloud Foundry Introduction - Canada - October 2012Patrick Chanezon
 
Portrait of the Developer As "The Artist" - English Version
Portrait of the Developer As "The Artist" - English VersionPortrait of the Developer As "The Artist" - English Version
Portrait of the Developer As "The Artist" - English VersionPatrick Chanezon
 
Portrait of the developer as The Artist - SpringOne India 2012
Portrait of the developer as The Artist - SpringOne India 2012Portrait of the developer as The Artist - SpringOne India 2012
Portrait of the developer as The Artist - SpringOne India 2012Patrick Chanezon
 
Oasis: Standards & the Cloud June2011
Oasis: Standards & the Cloud June2011Oasis: Standards & the Cloud June2011
Oasis: Standards & the Cloud June2011Jamie Clark
 
Cloudcamp Ghent - Cloud foundry-20111121
Cloudcamp Ghent - Cloud foundry-20111121Cloudcamp Ghent - Cloud foundry-20111121
Cloudcamp Ghent - Cloud foundry-20111121Lode Vermeiren
 
Kentucky gis
Kentucky gisKentucky gis
Kentucky gisedsai
 
Portrait of the Developer as the Artist - OpenTour Sofia
Portrait of the Developer as the Artist - OpenTour SofiaPortrait of the Developer as the Artist - OpenTour Sofia
Portrait of the Developer as the Artist - OpenTour SofiaPatrick Chanezon
 
Hong Kong User Group 2019
Hong Kong User Group 2019Hong Kong User Group 2019
Hong Kong User Group 2019Solace
 
Building Cloud Native Software
Building Cloud Native SoftwareBuilding Cloud Native Software
Building Cloud Native SoftwarePaul Fremantle
 
PaaS Parade - Cloud Foundry
PaaS Parade - Cloud FoundryPaaS Parade - Cloud Foundry
PaaS Parade - Cloud Foundrymartinlippert
 
Microservices with Spring Cloud and Netflix OSS
Microservices with Spring Cloud and Netflix OSSMicroservices with Spring Cloud and Netflix OSS
Microservices with Spring Cloud and Netflix OSSDenis Danov
 
IT Geek Week 2016 - Introduction To Cloud Computing
IT Geek Week 2016 - Introduction To Cloud ComputingIT Geek Week 2016 - Introduction To Cloud Computing
IT Geek Week 2016 - Introduction To Cloud ComputingHaim Ateya
 
IntroToMEC.pptx
IntroToMEC.pptxIntroToMEC.pptx
IntroToMEC.pptxAliArsal5
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon Web Services Korea
 
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...trisberg
 
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...confluent
 

Similar to Cloud foundry - the building of the open paas presentation (20)

RubyWorld 2011
RubyWorld 2011RubyWorld 2011
RubyWorld 2011
 
Qcon 111122082620-phpapp02
Qcon 111122082620-phpapp02Qcon 111122082620-phpapp02
Qcon 111122082620-phpapp02
 
Cloud Foundry Introduction - Canada - October 2012
Cloud Foundry Introduction - Canada - October 2012Cloud Foundry Introduction - Canada - October 2012
Cloud Foundry Introduction - Canada - October 2012
 
Portrait of the Developer As "The Artist" - English Version
Portrait of the Developer As "The Artist" - English VersionPortrait of the Developer As "The Artist" - English Version
Portrait of the Developer As "The Artist" - English Version
 
Portrait of the developer as The Artist - SpringOne India 2012
Portrait of the developer as The Artist - SpringOne India 2012Portrait of the developer as The Artist - SpringOne India 2012
Portrait of the developer as The Artist - SpringOne India 2012
 
Oasis: Standards & the Cloud June2011
Oasis: Standards & the Cloud June2011Oasis: Standards & the Cloud June2011
Oasis: Standards & the Cloud June2011
 
Cloudcamp Ghent - Cloud foundry-20111121
Cloudcamp Ghent - Cloud foundry-20111121Cloudcamp Ghent - Cloud foundry-20111121
Cloudcamp Ghent - Cloud foundry-20111121
 
Kentucky gis
Kentucky gisKentucky gis
Kentucky gis
 
Portrait of the Developer as the Artist - OpenTour Sofia
Portrait of the Developer as the Artist - OpenTour SofiaPortrait of the Developer as the Artist - OpenTour Sofia
Portrait of the Developer as the Artist - OpenTour Sofia
 
Hong Kong User Group 2019
Hong Kong User Group 2019Hong Kong User Group 2019
Hong Kong User Group 2019
 
Building Cloud Native Software
Building Cloud Native SoftwareBuilding Cloud Native Software
Building Cloud Native Software
 
FederatedAccessOpenStack.pdf
FederatedAccessOpenStack.pdfFederatedAccessOpenStack.pdf
FederatedAccessOpenStack.pdf
 
PaaS Parade - Cloud Foundry
PaaS Parade - Cloud FoundryPaaS Parade - Cloud Foundry
PaaS Parade - Cloud Foundry
 
Spring cloud
Spring cloudSpring cloud
Spring cloud
 
Microservices with Spring Cloud and Netflix OSS
Microservices with Spring Cloud and Netflix OSSMicroservices with Spring Cloud and Netflix OSS
Microservices with Spring Cloud and Netflix OSS
 
IT Geek Week 2016 - Introduction To Cloud Computing
IT Geek Week 2016 - Introduction To Cloud ComputingIT Geek Week 2016 - Introduction To Cloud Computing
IT Geek Week 2016 - Introduction To Cloud Computing
 
IntroToMEC.pptx
IntroToMEC.pptxIntroToMEC.pptx
IntroToMEC.pptx
 
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
Amazon EKS 그리고 Service Mesh (김세호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
 
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...
SpringOne 2GX 2011 - Writing applications for Cloud Foundry using Spring and ...
 
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...
Operating Kafka on AutoPilot mode @ DBS Bank (Arpit Dubey, DBS Bank) Kafka Su...
 

Recently uploaded

Claire's designing portfolio presentation
Claire's designing portfolio presentationClaire's designing portfolio presentation
Claire's designing portfolio presentationssuser8fae18
 
Heidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidiLivengood
 
Pitch Presentation for Service Design in Technology
Pitch Presentation for Service Design in TechnologyPitch Presentation for Service Design in Technology
Pitch Presentation for Service Design in TechnologyJaime Brown
 
The Design Code Google Developer Student Club.pptx
The Design Code Google Developer Student Club.pptxThe Design Code Google Developer Student Club.pptx
The Design Code Google Developer Student Club.pptxadityakushalsaha
 
Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..GB Logo Design
 
Art Nouveau Movement Presentation for Art History.
Art Nouveau Movement Presentation for Art History.Art Nouveau Movement Presentation for Art History.
Art Nouveau Movement Presentation for Art History.rrimika1
 
Research about Venice ppt for grade 6f anas
Research about Venice ppt for grade 6f anasResearch about Venice ppt for grade 6f anas
Research about Venice ppt for grade 6f anasanasabutalha2013
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxAlecAnidul
 
Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Remy Rey De Barros
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationJaime Brown
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themmadhavlakhanpal29
 
Redefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationRedefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationJIT KUMAR GUPTA
 
BIT- Pinal .H. Prajapati Graphic Designer
BIT- Pinal .H. Prajapati  Graphic DesignerBIT- Pinal .H. Prajapati  Graphic Designer
BIT- Pinal .H. Prajapati Graphic Designerbitwgin12
 
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfSpring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfJon Freach
 
Extended Reality(XR) Development in immersive design
Extended Reality(XR) Development in immersive designExtended Reality(XR) Development in immersive design
Extended Reality(XR) Development in immersive designGOWSIKRAJA PALANISAMY
 
FW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisFW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisPeclers Paris
 

Recently uploaded (16)

Claire's designing portfolio presentation
Claire's designing portfolio presentationClaire's designing portfolio presentation
Claire's designing portfolio presentation
 
Heidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD Portfolio
 
Pitch Presentation for Service Design in Technology
Pitch Presentation for Service Design in TechnologyPitch Presentation for Service Design in Technology
Pitch Presentation for Service Design in Technology
 
The Design Code Google Developer Student Club.pptx
The Design Code Google Developer Student Club.pptxThe Design Code Google Developer Student Club.pptx
The Design Code Google Developer Student Club.pptx
 
Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..
 
Art Nouveau Movement Presentation for Art History.
Art Nouveau Movement Presentation for Art History.Art Nouveau Movement Presentation for Art History.
Art Nouveau Movement Presentation for Art History.
 
Research about Venice ppt for grade 6f anas
Research about Venice ppt for grade 6f anasResearch about Venice ppt for grade 6f anas
Research about Venice ppt for grade 6f anas
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptx
 
Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & Application
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
Redefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationRedefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and Localisation
 
BIT- Pinal .H. Prajapati Graphic Designer
BIT- Pinal .H. Prajapati  Graphic DesignerBIT- Pinal .H. Prajapati  Graphic Designer
BIT- Pinal .H. Prajapati Graphic Designer
 
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfSpring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
 
Extended Reality(XR) Development in immersive design
Extended Reality(XR) Development in immersive designExtended Reality(XR) Development in immersive design
Extended Reality(XR) Development in immersive design
 
FW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisFW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers Paris
 

Cloud foundry - the building of the open paas presentation

  • 1. Cloud Foundry The Building of the Open PaaS Derek Collison July 27, 2011
  • 6. aPaaS • Application Platform as a Service • Applications and Services • Not VMs, Memory, Storage, CPU
  • 8. OpenPaaS • Multi-Language • Multi-Framework • Multi-Services • Multi-Cloud, Multi-IaaS • Hybrid - Public or Private or Both • OpenSource
  • 9. OpenPaaS • Multi-Language • Java, Scala, Ruby, Node, Erlang, PHP.. • Multi-Framework • Spring, Grails, Express, Rails, Lift, MochiWeb • Multi-Services • MySQL, Postgres, MongoDB, Redis, RabbitMQ • Multi-Cloud, Multi-IaaS • vSphere, OpenStack, AWS, Eucalyptus
  • 10. The Open PaaS .js Ap ce p Private lic rfa Clouds at Data Services te io In n Se er r vid … vic Public o e Clouds Pr Msg Services In te ud rfa o Cl .COM ce Micro Other Services Clouds
  • 11. What was our Goal? • Raise the unit of currency to the be the application and its associated services, not the infrastructure • Best of breed delivery platform for all modern applications and frameworks • Favor Choice and Openness • Simplicity and Speed
  • 12. How was it Built? • Kernel and Orchestrator Shells • Layered on top of IaaS • Kernel • Core PaaS System • Orchestrator • Creation, management and orchestration of the infrastructure
  • 13. High Level Clients (VMC, STS, Browser) CF Kernel Orchestrator IaaS Hardware - CPU/Memory/Disk/Network
  • 14. Basic Premises • Assume failure • Optimize for MTTR, not MTBF • MTTR = Mean Time To Recovery • MTBF = Mean Time Between Failures • Fail Fast • Self Healing • Horizontally Scalable Components • Distributed state, No single POF • Should be as simple as possible
  • 15. Basic Patterns • Event-Driven • Asynchronous • Non-blocking • Independent, Idempotent • Message passing • Eventually consistent
  • 16. Basic Design • All components loosely coupled • Few “Classes”, many “Instances” • Messaging as foundation • Addressing and Component Discovery • Command and Control • JSON payloads • HTTP or File/Blob for data transport
  • 17. Kernel Components • All dynamically discoverable • Launch and scale in any order • Can come and go as needed • Monitor via HTTP and JSON • Location independent
  • 18. Kernel Components • Router • CloudController • DEA • HealthManager • Messaging System
  • 19. Logical View Browser VMC client STS plugin (user app access) Routers CloudControllers App App HealthManager Services DEA Pool Messaging
  • 20. Messaging • Addressing and Discovery • No static IPs or DNS lookups req’d • Just Layer 4 • Command and Control • Central communication system • Dial tone, fire and forget • Protects *itself* at all costs • Idempotent semantics
  • 21. Router • Handles all HTTP traffic • Maintains distributed routing state • Routes URLs to applications • Distributes load among instances • Realtime distributed updates to routing tables from DEAs
  • 22. CloudController • Handles all state transitions • Deals with users, apps, and services • Packages and Stages applications • Binds Services to Applications • Presents external REST API
  • 23. HealthManager • Monitors the state • Initial value with realtime delta updates to intended vs real • Determines drift • Complains to the CloudControllers when something is not correct • No power to change state itself
  • 24. DEA (Droplet Execution Agent) • Responsible for running all applications • Monitors all applications • CPU, Mem, IO, Threads, Disk, FDs, etc • All apps look same to DEA, start and stop • “concept” of ability and desire to run an application • runtimes, options, cluster avoidance, memory/cpu • Alerts on any change in state of applications • Provides secure/constrained OS runtime • Hypervisor, Unix File and User, Linux Containers • Single or Multi-Tenant
  • 25. Services • One of the extensibility planes • First class citizen • Bound to applications • Can be shared • Services API to discover, list, and provision • Direct access to service after provisioned • Easy way to bind any service to an app
  • 27. How does it all work?
  • 28. Pushing an App • Client (VMC/STS) pushes meta-data to CC • Client optionally pushes resource signatures (diff analysis, sys wide) • Client pushes app resources to CC • CC puts app together • CC stages app asynchronously • CC binds and stages services • Droplet ready
  • 30. Running an App • CC asks DEAs for “help” • First DEA back wins! Simple • CC sends start request to selected DEA • DEA pushes the “green” button • DEA waits and monitors pid and ephemeral port for app to bind • When app is healthy, sends “register” message • Register message is seen by HM and Routers • Routers bind URL to host:port
  • 32. DEAs answer? • DEAs first determine YES or NO • correct runtime, options, memory, etc • Then calculate a Delay Taint • SHA hash of app instance • memory • cpu • This taint allows balancing and selection
  • 33. Scale up & down? • Exact steps as running the app the first time • SHA1 taint helps avoid clustering • memory/cpu taint helps distribute as evenly as possible • Nothing pre-computed or strict
  • 34. Crashes? • If your app stops and we did not tell it to, that is a crash • Crashed apps are immediately detected by DEA and message sent • Routers disconnect route • HM will signal a CC that something is wrong • CC will issue run sequence again
  • 36. Access to my App? • All routers understand where all instances of your application are running • Will randomly pick backend, not semantically aware. • Will remove routes that are stale or unhealthy • Session stickiness and replication available, but best to avoid if possible