SlideShare a Scribd company logo
1 of 57
Download to read offline
Cloud Foundry & Bosh 
A Cloud Love
In this talk you will
• discover the anynines stack 
• get known to Cloud Foundry 
• learn how Bosh deploys Cloud Foundry
Introduction
100% European
30+ employees
The anynines Stack
Built on approved 
Open Source 
Software
Cloud Foundry 
OpenStack 
VMware 
Hardware
We migrated from a 
Rented VMware to a 
self-hosted OpenStack.
< 30 min downtime. 
Read more: 
http://rh.gd/a9vmw2sos
Cloud Foundry
• open source software, Apache 2 license 
• developed by Pivotal, 
~$500 mio. funding 
• mostly written in Ruby & Go
CF Architecture
Anynines Elastic Runtime MongoDB Service 
MongoDB Service Broker 
MongoDB Bosh 
MongoDB Service Clusters 
… 
Load Balancer & SSL Broker 
Application Router 
Cloud Controller Health Manager 
UAA Login Service 
NATS Messaging Bus 
Blob Store 
DEA Pool 
DEA VM 1 DEA VM 2 DEA VM n 
App Container 1 
App Container 2 
App Container 3 
App Container 4 
App Container 5 App Container n 
Bosh 
Bosh Director 
… 
Bosh Health Manager 
Bosh Workers Bosh Resurrector 
Bosh Task Queue Bosh DNS Server
Deploying an App
Anynines Elastic Runtime 
Blob Store Cloud Controller 
DEA DEA DEA 
App Container App Container 
= Droplet = Your runnable app 
Application Deployment 
cf push {meta: data} 
Health Manager
Staging an App
Anynines Elastic Runtime 
Blob Store Cloud Controller 
DEA DEA DEA 
App Container 
= Droplet = Your runnable app 
Application Staging 
Global Buildpacks 
+ =
Anynines Elastic Runtime 
Blob Store Cloud Controller 
DEA DEA DEA 
App Container 
= Droplet = Your runnable app 
Application Staging 
Global Buildpacks 
+App C=ontainer
Scaling an App
cf scale myapp -i 2
Anynines Elastic Runtime 
Application Scale-Out 
Blob Store Cloud Controller Health Manager 
NATS Message Bus 
DEA DEA DEA 
App Container 
= Droplet = Your runnable app 
App Container
Cloud Foundry 
Elastic Runtime 
Summary
• Application server grid on steroids 
• Generic buildpack support 
• SCM agnostic deployments
Services
cf create-service mongodb cluster-med mydb1
Create Service Instance 
Anynines Elastic Runtime 
Blob Store Cloud Controller 
Health Manager 
DEA 
App Container App Container 
MongoDB Service 
Service Broker 
Example: MongoDB - Could be any other service 
Service Provisioner Inception VM 
DEA Mongo Cluster 1 
VM VM VM 
Service Bosh 
Mongo Cluster 2 
VM VM VM
cf bind-service mongodb mydb1
Create Service Instance 
Anynines Elastic Runtime MongoDB Service 
Blob Store Cloud Controller 
Health Manager 
DEA 
App Container App Container 
Service Broker 
Example: MongoDB - Could be any other service 
Service Provisioner Inception VM 
DEA Mongo Cluster 1 
VM VM VM 
Service Bosh 
Mongo Cluster 2 
VM VM VM 
{user: john, password: doe}
Back to the 
big picture 
Read more 
http://rh.gd/1E41ZqZ
Anynines Elastic Runtime MongoDB Service 
MongoDB Service Broker 
MongoDB Bosh 
MongoDB Service Clusters 
… 
Load Balancer & SSL Broker 
Application Router 
Cloud Controller Health Manager 
UAA Login Service 
NATS Messaging Bus 
Blob Store 
DEA Pool 
DEA VM 1 DEA VM 2 DEA VM n 
App Container 1 
App Container 2 
App Container 3 
App Container 4 
App Container 5 App Container n 
Bosh 
Bosh Director 
… 
Bosh Health Manager 
Bosh Workers Bosh Resurrector 
Bosh Task Queue Bosh DNS Server
How to deploy this 
multitude of services?
Bosh
• IaaS agnostic 
• Turnkey deployments for large 
distributed systems 
• VM orchestration 
• Installation automation
Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) 
Bosh Agent 
CF Health Manager (Process) 
VIRTUAL MACHINE 
Process Monitor 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
Bosh Health Monitor 
Bosh Director 
NATS Message Bus 
Infrastructure Level Self-Healing 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
Bosh CLI 
Bosh Blobstore 
DNS Server 
Bosh CPI 
Registry 
Resurrector 
Task Queue 
Task Workers 
VM VM VM VM VM VM VM VM
Bosh CPI 
- 
Cloud Provider Interface
Bosh CPI 
# Stemcell 
create_stemcell(image, cloud_properties) 
delete_stemcell(stemcell_id) 
! 
# VM 
create_vm(agent_id, stemcell_id, resource_pool, 
networks, disk_locality, env) 
delete_vm(vm_id) 
reboot_vm(vm_id) 
configure_networks(vm_id, networks) 
! 
# Disk 
create_disk(size, vm_locality) 
delete_disk(disk_id) 
attach_disk(vm_id, disk_id) 
detach_disk(vm_id, disk_id)
OpenStack CPI 
http://rh.gd/1oDezng
Four Layers of HA
1. Application Failure 
⇒ Reboot in new Container ✔ 
2. Rack Failure 
⇒ Availability Zones ✔ 
3. PaaS Process Failure 
⇒ Reboot component in a new VM ✔ 
4. PaaS VM Failure 
⇒ VM Monitor ⇒ Recreate VM ✔
Application Failure
Anynines Elastic Runtime 
Blob Store Cloud Controller Health Manager 
NATS Message Bus 
DEA DEA DEA 
App Container 
App Container App Container 
= Droplet = Your runnable app 
Application Level Self-Healing
Availability Zone Failure 
(e.g. Rack Failure)
Anynines Elastic Runtime 
Application Level Self-Healing 
IaaS Availability Zone 1 IaaS Availability Zone 2 IaaS Availability Zone 3 
DEAs DEAs DEAs 
Application 
Container 
Application 
Container 
Application 
Container 
Application 
Container 
Application 
Container 
Application 
Container 
Application 
Container 
Application 
Container
PaaS Process Failure
Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) 
MACHINE Bosh Agent Process Monitor 
VIRTUAL CF Health Manager (Process) 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
Bosh Health Monitor 
Bosh Director 
NATS Message Bus 
Infrastructure Level Self-Healing 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor
PaaS VM Failure
Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) 
MACHINE Bosh Agent Process Monitor 
VIRTUAL CF Health Manager (Process) 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
Bosh Health Monitor 
Bosh Director 
NATS Message Bus 
Infrastructure Level Self-Healing
Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) 
MACHINE Bosh Agent Process Monitor 
VIRTUAL CF Health Manager (Process) 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor 
Bosh Health Monitor 
Bosh Director 
NATS Message Bus 
Infrastructure Level Self-Healing 
CF DEA (Process) 
VIRTUAL MACHINE 
Bosh Agent Process Monitor
Summary
• Cloud Foundry is a free, production 
ready Heroku-like PaaS 
• Awesome app runtime 
• Service orchestration 
• Transparent due to open source 
• No vendor-lock in
• Bosh is a cloud-ready orchestration tool 
• Describe a distributed-system blueprint 
⇒ Bosh will build it for you. Ready to use.
Which part(s) should be 
presented in the next talk?
Thank you!

More Related Content

What's hot

Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
Axel Quack
 
Cloud Foundry | How it works
Cloud Foundry | How it worksCloud Foundry | How it works
Cloud Foundry | How it works
Kazuto Kusama
 

What's hot (20)

Pivotal CF on AWS
Pivotal CF on AWSPivotal CF on AWS
Pivotal CF on AWS
 
OpenSlava 2014 - CloudFoundry inside-out
OpenSlava 2014 - CloudFoundry inside-outOpenSlava 2014 - CloudFoundry inside-out
OpenSlava 2014 - CloudFoundry inside-out
 
Cloud Foundry Compared With Other PaaSes (Cloud Foundry Summit 2014)
Cloud Foundry Compared With Other PaaSes (Cloud Foundry Summit 2014)Cloud Foundry Compared With Other PaaSes (Cloud Foundry Summit 2014)
Cloud Foundry Compared With Other PaaSes (Cloud Foundry Summit 2014)
 
Cloud Foundry Introduction for CF Meetup Tokyo March 2016
Cloud Foundry Introduction for CF Meetup Tokyo March 2016Cloud Foundry Introduction for CF Meetup Tokyo March 2016
Cloud Foundry Introduction for CF Meetup Tokyo March 2016
 
An introduction to Cloud Foundry
An introduction to Cloud FoundryAn introduction to Cloud Foundry
An introduction to Cloud Foundry
 
Cloud Foundry Summit 2015: Building a Robust Cloud Foundry (HA, Security and DR)
Cloud Foundry Summit 2015: Building a Robust Cloud Foundry (HA, Security and DR)Cloud Foundry Summit 2015: Building a Robust Cloud Foundry (HA, Security and DR)
Cloud Foundry Summit 2015: Building a Robust Cloud Foundry (HA, Security and DR)
 
Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...
Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...
Introducing Cloud Native, Event Driven, Serverless, Micrsoservices Framework ...
 
Moving at the speed of startup with Pivotal Cloud Foundry 1.11
Moving at the speed of startup with Pivotal Cloud Foundry 1.11Moving at the speed of startup with Pivotal Cloud Foundry 1.11
Moving at the speed of startup with Pivotal Cloud Foundry 1.11
 
Cloud Foundry Summit 2015: Managing Multiple Cloud with a Single BOSH Deploym...
Cloud Foundry Summit 2015: Managing Multiple Cloud with a Single BOSH Deploym...Cloud Foundry Summit 2015: Managing Multiple Cloud with a Single BOSH Deploym...
Cloud Foundry Summit 2015: Managing Multiple Cloud with a Single BOSH Deploym...
 
Cloud Foundry and OpenStack - A Marriage Made in Heaven! (Cloud Foundry Summi...
Cloud Foundry and OpenStack - A Marriage Made in Heaven! (Cloud Foundry Summi...Cloud Foundry and OpenStack - A Marriage Made in Heaven! (Cloud Foundry Summi...
Cloud Foundry and OpenStack - A Marriage Made in Heaven! (Cloud Foundry Summi...
 
Cloud Foundry Bootcamp
Cloud Foundry BootcampCloud Foundry Bootcamp
Cloud Foundry Bootcamp
 
DevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as codeDevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as code
 
Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)
Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)
Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)
 
Infrastructure as code
Infrastructure as codeInfrastructure as code
Infrastructure as code
 
Going Cloud Native with Cloud Foundry
Going Cloud Native with Cloud FoundryGoing Cloud Native with Cloud Foundry
Going Cloud Native with Cloud Foundry
 
Building Cloud Native Software
Building Cloud Native SoftwareBuilding Cloud Native Software
Building Cloud Native Software
 
Introduction to Platform-as-a-Service and Cloud Foundry
Introduction to Platform-as-a-Service and Cloud FoundryIntroduction to Platform-as-a-Service and Cloud Foundry
Introduction to Platform-as-a-Service and Cloud Foundry
 
Practical PaaS presentation
Practical PaaS presentationPractical PaaS presentation
Practical PaaS presentation
 
20120317 CloudFoundry #pyfes
20120317 CloudFoundry #pyfes20120317 CloudFoundry #pyfes
20120317 CloudFoundry #pyfes
 
Cloud Foundry | How it works
Cloud Foundry | How it worksCloud Foundry | How it works
Cloud Foundry | How it works
 

Viewers also liked

Viewers also liked (6)

Cloud Foundry for PHP developers
Cloud Foundry for PHP developersCloud Foundry for PHP developers
Cloud Foundry for PHP developers
 
GO-CFを試してみる
GO-CFを試してみるGO-CFを試してみる
GO-CFを試してみる
 
Bluemix and DevOps workshop lab
Bluemix and DevOps workshop labBluemix and DevOps workshop lab
Bluemix and DevOps workshop lab
 
How does the Cloud Foundry Diego Project Run at Scale?
How does the Cloud Foundry Diego Project Run at Scale?How does the Cloud Foundry Diego Project Run at Scale?
How does the Cloud Foundry Diego Project Run at Scale?
 
Cloud Foundryは何故動くのか
Cloud Foundryは何故動くのかCloud Foundryは何故動くのか
Cloud Foundryは何故動くのか
 
今すぐ始めるCloud Foundry #hackt #hackt_k
今すぐ始めるCloud Foundry #hackt #hackt_k今すぐ始めるCloud Foundry #hackt #hackt_k
今すぐ始めるCloud Foundry #hackt #hackt_k
 

Similar to Introduction into Cloud Foundry and Bosh | anynines

DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
DataStax
 

Similar to Introduction into Cloud Foundry and Bosh | anynines (20)

Successful Patterns for running platforms
Successful Patterns for running platformsSuccessful Patterns for running platforms
Successful Patterns for running platforms
 
PHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on BluemixPHP Buildpacks in the Cloud on Bluemix
PHP Buildpacks in the Cloud on Bluemix
 
Tech huddle paas_session
Tech huddle paas_sessionTech huddle paas_session
Tech huddle paas_session
 
Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015Application Deployment on AWS - Startup Talks June 2015
Application Deployment on AWS - Startup Talks June 2015
 
Running Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic BeanstalkRunning Microservices on AWS Elastic Beanstalk
Running Microservices on AWS Elastic Beanstalk
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
 
Pivotal Container Service il modo più semplice per gestire Kubernetes in azie...
Pivotal Container Service il modo più semplice per gestire Kubernetes in azie...Pivotal Container Service il modo più semplice per gestire Kubernetes in azie...
Pivotal Container Service il modo più semplice per gestire Kubernetes in azie...
 
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
Running Microservices and Docker on AWS Elastic Beanstalk - August 2016 Month...
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
La sécurité avec Kubernetes et les conteneurs Docker (June 19th, 2019)
La sécurité avec Kubernetes et les conteneurs Docker (June 19th, 2019)La sécurité avec Kubernetes et les conteneurs Docker (June 19th, 2019)
La sécurité avec Kubernetes et les conteneurs Docker (June 19th, 2019)
 
DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
DataStax | DSE Production-Certified Cassandra on Pivotal Cloud Foundry (Ben L...
 
PCF: Platform for a New Era - Kubernetes for the Enterprise - London
PCF: Platform for a New Era - Kubernetes for the Enterprise - LondonPCF: Platform for a New Era - Kubernetes for the Enterprise - London
PCF: Platform for a New Era - Kubernetes for the Enterprise - London
 
Introduction Into Docker Ecosystem
Introduction Into Docker EcosystemIntroduction Into Docker Ecosystem
Introduction Into Docker Ecosystem
 
Immutable Infrastructure: Rise of the Machine Images
Immutable Infrastructure: Rise of the Machine ImagesImmutable Infrastructure: Rise of the Machine Images
Immutable Infrastructure: Rise of the Machine Images
 
DevOps vs. Site Reliability Engineering (SRE) in Age of Kubernetes
DevOps vs. Site Reliability Engineering (SRE) in Age of KubernetesDevOps vs. Site Reliability Engineering (SRE) in Age of Kubernetes
DevOps vs. Site Reliability Engineering (SRE) in Age of Kubernetes
 
AWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for GovernmentAWS Webcast - Build Agile Applications in AWS Cloud for Government
AWS Webcast - Build Agile Applications in AWS Cloud for Government
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
Cornelia Davis - P to V to C: The Value of Bringing “Everything” to Container...
Cornelia Davis - P to V to C: The Value of Bringing “Everything” to Container...Cornelia Davis - P to V to C: The Value of Bringing “Everything” to Container...
Cornelia Davis - P to V to C: The Value of Bringing “Everything” to Container...
 
Continuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWSContinuous Integration and Deployment Best Practices on AWS
Continuous Integration and Deployment Best Practices on AWS
 
Getting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container ServiceGetting Started with Amazon EC2 Container Service
Getting Started with Amazon EC2 Container Service
 

More from anynines GmbH

Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anyninesVorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
anynines GmbH
 
Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines
anynines GmbH
 
Migrating a Cloud Foundry from VMware to OpenStack | anynines
Migrating a Cloud Foundry from VMware to OpenStack | anyninesMigrating a Cloud Foundry from VMware to OpenStack | anynines
Migrating a Cloud Foundry from VMware to OpenStack | anynines
anynines GmbH
 

More from anynines GmbH (20)

Beyond 1000 bosh Deployments
Beyond 1000 bosh DeploymentsBeyond 1000 bosh Deployments
Beyond 1000 bosh Deployments
 
Automating the Entire PostgreSQL Lifecycle
Automating the Entire PostgreSQL Lifecycle Automating the Entire PostgreSQL Lifecycle
Automating the Entire PostgreSQL Lifecycle
 
Kill Your Productivity - As Efficient as Possible
Kill Your Productivity - As Efficient as PossibleKill Your Productivity - As Efficient as Possible
Kill Your Productivity - As Efficient as Possible
 
Digital Transformation Case Study | anynines
Digital Transformation Case Study | anynines Digital Transformation Case Study | anynines
Digital Transformation Case Study | anynines
 
Docker & Diego - good friends or not? | anynines
Docker & Diego  - good friends or not? | anyninesDocker & Diego  - good friends or not? | anynines
Docker & Diego - good friends or not? | anynines
 
Experience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anyninesExperience Report: Cloud Foundry Open Source Operations | anynines
Experience Report: Cloud Foundry Open Source Operations | anynines
 
Delivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anyninesDelivering a production Cloud Foundry Environment with Bosh | anynines
Delivering a production Cloud Foundry Environment with Bosh | anynines
 
Building a Production Grade PostgreSQL Cloud Foundry Service | anynines
Building a Production Grade PostgreSQL Cloud Foundry Service  | anyninesBuilding a Production Grade PostgreSQL Cloud Foundry Service  | anynines
Building a Production Grade PostgreSQL Cloud Foundry Service | anynines
 
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
Cloud Infrastructures Slide Set 8 - More Cloud Technologies - Mesos, Spark | ...
 
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anyninesCloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
 
Cloud infrastructures - Slide Set 6 - BOSH | anynines
Cloud infrastructures - Slide Set 6 - BOSH | anyninesCloud infrastructures - Slide Set 6 - BOSH | anynines
Cloud infrastructures - Slide Set 6 - BOSH | anynines
 
Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anyninesVorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
Vorlesung - Cloud Infrastrukturen - OpenStack Part 1 | anynines
 
Vorlesung - Cloud Infrastrukturen - Clusterbau | anynines
Vorlesung - Cloud Infrastrukturen - Clusterbau  | anyninesVorlesung - Cloud Infrastrukturen - Clusterbau  | anynines
Vorlesung - Cloud Infrastrukturen - Clusterbau | anynines
 
Vorlesung - Cloud Infrastrukturen - Einleitung | anynines
Vorlesung - Cloud Infrastrukturen - Einleitung | anyninesVorlesung - Cloud Infrastrukturen - Einleitung | anynines
Vorlesung - Cloud Infrastrukturen - Einleitung | anynines
 
Running Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anyninesRunning Cloud Foundry for 12 months - An experience report | anynines
Running Cloud Foundry for 12 months - An experience report | anynines
 
Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines
 
NSA - No thanks - Build your own cloud with OpenStack and Cloud Foundry | any...
NSA - No thanks - Build your own cloud with OpenStack and Cloud Foundry | any...NSA - No thanks - Build your own cloud with OpenStack and Cloud Foundry | any...
NSA - No thanks - Build your own cloud with OpenStack and Cloud Foundry | any...
 
Migrating a Cloud Foundry from VMware to OpenStack | anynines
Migrating a Cloud Foundry from VMware to OpenStack | anyninesMigrating a Cloud Foundry from VMware to OpenStack | anynines
Migrating a Cloud Foundry from VMware to OpenStack | anynines
 
Building a European PaaS | anynines
Building a European PaaS | anyninesBuilding a European PaaS | anynines
Building a European PaaS | anynines
 
Continuous deployment with Cloud Foundry, Github and Travis CI | anynines
Continuous deployment with Cloud Foundry, Github and Travis CI | anyninesContinuous deployment with Cloud Foundry, Github and Travis CI | anynines
Continuous deployment with Cloud Foundry, Github and Travis CI | anynines
 

Introduction into Cloud Foundry and Bosh | anynines

  • 1. Cloud Foundry & Bosh A Cloud Love
  • 2. In this talk you will
  • 3. • discover the anynines stack • get known to Cloud Foundry • learn how Bosh deploys Cloud Foundry
  • 5.
  • 9. Built on approved Open Source Software
  • 10. Cloud Foundry OpenStack VMware Hardware
  • 11. We migrated from a Rented VMware to a self-hosted OpenStack.
  • 12. < 30 min downtime. Read more: http://rh.gd/a9vmw2sos
  • 14. • open source software, Apache 2 license • developed by Pivotal, ~$500 mio. funding • mostly written in Ruby & Go
  • 16. Anynines Elastic Runtime MongoDB Service MongoDB Service Broker MongoDB Bosh MongoDB Service Clusters … Load Balancer & SSL Broker Application Router Cloud Controller Health Manager UAA Login Service NATS Messaging Bus Blob Store DEA Pool DEA VM 1 DEA VM 2 DEA VM n App Container 1 App Container 2 App Container 3 App Container 4 App Container 5 App Container n Bosh Bosh Director … Bosh Health Manager Bosh Workers Bosh Resurrector Bosh Task Queue Bosh DNS Server
  • 18. Anynines Elastic Runtime Blob Store Cloud Controller DEA DEA DEA App Container App Container = Droplet = Your runnable app Application Deployment cf push {meta: data} Health Manager
  • 20. Anynines Elastic Runtime Blob Store Cloud Controller DEA DEA DEA App Container = Droplet = Your runnable app Application Staging Global Buildpacks + =
  • 21. Anynines Elastic Runtime Blob Store Cloud Controller DEA DEA DEA App Container = Droplet = Your runnable app Application Staging Global Buildpacks +App C=ontainer
  • 24. Anynines Elastic Runtime Application Scale-Out Blob Store Cloud Controller Health Manager NATS Message Bus DEA DEA DEA App Container = Droplet = Your runnable app App Container
  • 25. Cloud Foundry Elastic Runtime Summary
  • 26. • Application server grid on steroids • Generic buildpack support • SCM agnostic deployments
  • 27.
  • 29. cf create-service mongodb cluster-med mydb1
  • 30. Create Service Instance Anynines Elastic Runtime Blob Store Cloud Controller Health Manager DEA App Container App Container MongoDB Service Service Broker Example: MongoDB - Could be any other service Service Provisioner Inception VM DEA Mongo Cluster 1 VM VM VM Service Bosh Mongo Cluster 2 VM VM VM
  • 32. Create Service Instance Anynines Elastic Runtime MongoDB Service Blob Store Cloud Controller Health Manager DEA App Container App Container Service Broker Example: MongoDB - Could be any other service Service Provisioner Inception VM DEA Mongo Cluster 1 VM VM VM Service Bosh Mongo Cluster 2 VM VM VM {user: john, password: doe}
  • 33. Back to the big picture Read more http://rh.gd/1E41ZqZ
  • 34. Anynines Elastic Runtime MongoDB Service MongoDB Service Broker MongoDB Bosh MongoDB Service Clusters … Load Balancer & SSL Broker Application Router Cloud Controller Health Manager UAA Login Service NATS Messaging Bus Blob Store DEA Pool DEA VM 1 DEA VM 2 DEA VM n App Container 1 App Container 2 App Container 3 App Container 4 App Container 5 App Container n Bosh Bosh Director … Bosh Health Manager Bosh Workers Bosh Resurrector Bosh Task Queue Bosh DNS Server
  • 35. How to deploy this multitude of services?
  • 36. Bosh
  • 37. • IaaS agnostic • Turnkey deployments for large distributed systems • VM orchestration • Installation automation
  • 38. Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) Bosh Agent CF Health Manager (Process) VIRTUAL MACHINE Process Monitor CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor Bosh Health Monitor Bosh Director NATS Message Bus Infrastructure Level Self-Healing CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor Bosh CLI Bosh Blobstore DNS Server Bosh CPI Registry Resurrector Task Queue Task Workers VM VM VM VM VM VM VM VM
  • 39. Bosh CPI - Cloud Provider Interface
  • 40. Bosh CPI # Stemcell create_stemcell(image, cloud_properties) delete_stemcell(stemcell_id) ! # VM create_vm(agent_id, stemcell_id, resource_pool, networks, disk_locality, env) delete_vm(vm_id) reboot_vm(vm_id) configure_networks(vm_id, networks) ! # Disk create_disk(size, vm_locality) delete_disk(disk_id) attach_disk(vm_id, disk_id) detach_disk(vm_id, disk_id)
  • 43. 1. Application Failure ⇒ Reboot in new Container ✔ 2. Rack Failure ⇒ Availability Zones ✔ 3. PaaS Process Failure ⇒ Reboot component in a new VM ✔ 4. PaaS VM Failure ⇒ VM Monitor ⇒ Recreate VM ✔
  • 45. Anynines Elastic Runtime Blob Store Cloud Controller Health Manager NATS Message Bus DEA DEA DEA App Container App Container App Container = Droplet = Your runnable app Application Level Self-Healing
  • 46. Availability Zone Failure (e.g. Rack Failure)
  • 47. Anynines Elastic Runtime Application Level Self-Healing IaaS Availability Zone 1 IaaS Availability Zone 2 IaaS Availability Zone 3 DEAs DEAs DEAs Application Container Application Container Application Container Application Container Application Container Application Container Application Container Application Container
  • 49. Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) MACHINE Bosh Agent Process Monitor VIRTUAL CF Health Manager (Process) CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor Bosh Health Monitor Bosh Director NATS Message Bus Infrastructure Level Self-Healing CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor
  • 51. Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) MACHINE Bosh Agent Process Monitor VIRTUAL CF Health Manager (Process) CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor Bosh Health Monitor Bosh Director NATS Message Bus Infrastructure Level Self-Healing
  • 52. Anynines Operations Manager (Bosh) Anynines IaaS (OpenStack) MACHINE Bosh Agent Process Monitor VIRTUAL CF Health Manager (Process) CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor Bosh Health Monitor Bosh Director NATS Message Bus Infrastructure Level Self-Healing CF DEA (Process) VIRTUAL MACHINE Bosh Agent Process Monitor
  • 54. • Cloud Foundry is a free, production ready Heroku-like PaaS • Awesome app runtime • Service orchestration • Transparent due to open source • No vendor-lock in
  • 55. • Bosh is a cloud-ready orchestration tool • Describe a distributed-system blueprint ⇒ Bosh will build it for you. Ready to use.
  • 56. Which part(s) should be presented in the next talk?