SlideShare ist ein Scribd-Unternehmen logo
1 von 23
1© Copyright 2013 Pivotal. All rights reserved. 1© Copyright 2013 Pivotal. All rights reserved.
Deploying a Multi-tier App in
Cloud Foundry
A tour
Cornelia Davis
Cloud Foundry Platform Engineering
cdavisafc@gopivotal.com | twitter: @cdavisafc | March 2014
2© Copyright 2013 Pivotal. All rights reserved.
Let’s push an app
3© Copyright 2013 Pivotal. All rights reserved.
Overview: Deploying App to
Cloud Foundry Runtime
① Upload app
bits and
metadata
push app
Router
② Create and bind services
⑱ Stage application
④ Deploy application
â‘€ Manage application health

which is a whole ‘nother meetup topic
Cloud Foundry
Runtime (PaaS)
Blobstore DB
Cloud
Controller
Service Broker
Node(s)
DEA
DEA
DEA
DEA
+ app MD
+ =
Service
credentials
4© Copyright 2013 Pivotal. All rights reserved.
Software
5© Copyright 2013 Pivotal. All rights reserved.
Software is Changing Industries
$3.5B valuation
–Financial Services
$3.5B valuation
– Travel & Hospitality
$3.5B valuation
– Transportation
$1.1B acquisition by
Monsanto – Agriculture
$19B valuation
– Entertainment
$3.2B acquisition by
Google– Digital Home
6© Copyright 2013 Pivotal. All rights reserved.
Reference Application from VMWare to demonstrate the vFabric Suite
Spring Trader
https://github.com/cf-platform-eng/springtrader-cf
7© Copyright 2013 Pivotal. All rights reserved.
From here 

8© Copyright 2013 Pivotal. All rights reserved.
Agenda
 Cross-site scripting
 JNDI  Service Catalog
 Spring Cloud
 Apps and Manifests
 Services plans
 Auto reconfiguration
9© Copyright 2013 Pivotal. All rights reserved.
Cross-site Scripting
http://springtrader.com/services
http://springtrader.com/web
10© Copyright 2013 Pivotal. All rights reserved.
Cross-site Scripting
http://traderweb.cfapps.io
http://traderservices.cfapps.io
11© Copyright 2013 Pivotal. All rights reserved.
Cross-site Scripting
http://traderfront.cfapps.io
One war file
12© Copyright 2013 Pivotal. All rights reserved.
JNDI  Service Instances
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/nanodb" />Old:
13© Copyright 2013 Pivotal. All rights reserved.
Spring Cloud
VCAP_SERVICES locally
cf bind-service traderfront devsql
cf bind-service traderfront stagingsql
OR
<cloud:data-source id="dataSource">
<cloud:connection
properties="sessionVariables=sql_mode='ANSI';
characterEncoding=UTF-8;defaultTransactionIsolation=2”/>
<cloud:pool pool-size="2" max-wait-time="200" />
</cloud:data-source>
VCAP_SERVICES={"cleardb-
n/a":[{"name":"tradersql","label":"cleardb-
n/a","tags":["mysql","relational"],"plan":"spark","credentials":{"jdbcUrl":"jd
bc:mysql://baf8a1e6a292a2:79581497@us-cdbr-east-
05.cleardb.net:3306/ad_595d583f143adee","uri":"mysql://baf8a1e6a292a2:79581497
@us-cdbr-east-
05.cleardb.net:3306/ad_595d583f143adee?reconnect=true","name":"ad_595d583f143a
dee","hostname":"us-cdbr-east-
05.cleardb.net","port":"3306","username":"baf8a1e6a292a2","password":"79581497
"}}],"cloudamqp-n/a":[{"name":"tradermessaging","label":"cloudamqp-
n/a","tags":["amqp","rabbitmq"],"plan":"lemur","credentials":{"uri":"amqp://kl
rdpgoo:mLpx_XtpEY7eJg-rG489FRs_J-jArqP6@tiger.cloudamqp.com/klrdpgoo"}}]}
New:
14© Copyright 2013 Pivotal. All rights reserved.
(Big-A) Applications and Manifests
http://traderfront.cfapps.io
One war file
Another war file
15© Copyright 2013 Pivotal. All rights reserved.
(Big-A) Applications and Manifests
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- tradersql
- tradermessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
16© Copyright 2013 Pivotal. All rights reserved.
(Big-A) Applications and Manifests
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- tradersql
- tradermessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- devsql
- devmessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
17© Copyright 2013 Pivotal. All rights reserved.
(Big-A) Applications and Manifests
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- tradersql
- tradermessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- devsql
- devmessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
---
timeout: 180
memory: 1G
domain: cfapps.io
instances: 1
services:
- stagingsql
- stagingmessaging
applications:
- name: traderback
path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war
host: traderback
- name: traderfront
path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war
host: traderfront
18© Copyright 2013 Pivotal. All rights reserved.
Services Marketplace and Plans
19© Copyright 2013 Pivotal. All rights reserved.
Auto-reconfiguration
<rabbit:connection-factory id="connectionFactory"
host="${NANO_RABBIT_HOST:localhost}"
port="${NANO_RABBIT_PORT:5672}"/>
Old:
New:
<cloud:rabbit-connection-factory id="connectionFactory"/>
DO NOT USE AUTORECONFIGURATION!! (esp. in production)
20© Copyright 2013 Pivotal. All rights reserved.
Pull Requests Welcome!
 Cross-site scripting
 Session State Caching
21© Copyright 2013 Pivotal. All rights reserved.
State, Statelessness and Scale
Cloud Controller Health Manager
Stateless part of your app Stateful part
Browser
CLI
Native
App
Mobile
App
DEA
DEA
Application Runners (DEA)
Router
22© Copyright 2013 Pivotal. All rights reserved.

 to here
A NEW PLATFORM FOR A NEW ERA

Weitere Àhnliche Inhalte

Was ist angesagt?

Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
VMware Tanzu
 
Cloud foundry architecture and deep dive
Cloud foundry architecture and deep diveCloud foundry architecture and deep dive
Cloud foundry architecture and deep dive
Animesh Singh
 

Was ist angesagt? (20)

Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014Running your Spring Apps in the Cloud Javaone 2014
Running your Spring Apps in the Cloud Javaone 2014
 
Sydney cloud foundry meetup - Service Brokers
Sydney cloud foundry meetup - Service  BrokersSydney cloud foundry meetup - Service  Brokers
Sydney cloud foundry meetup - Service Brokers
 
Pivotal cf for_devops_mkim_20141209
Pivotal cf for_devops_mkim_20141209Pivotal cf for_devops_mkim_20141209
Pivotal cf for_devops_mkim_20141209
 
Enterprise PaaS Golden Pitch
Enterprise PaaS Golden Pitch Enterprise PaaS Golden Pitch
Enterprise PaaS Golden Pitch
 
Cloud Foundry - How Service broker integrates with AppDirect to provide catal...
Cloud Foundry - How Service broker integrates with AppDirect to provide catal...Cloud Foundry - How Service broker integrates with AppDirect to provide catal...
Cloud Foundry - How Service broker integrates with AppDirect to provide catal...
 
OS + CF Austin meetup
OS + CF Austin meetupOS + CF Austin meetup
OS + CF Austin meetup
 
Monitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamics
Monitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamicsMonitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamics
Monitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamics
 
Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)
 
Pivotal cloud foundry introduction
Pivotal cloud foundry introductionPivotal cloud foundry introduction
Pivotal cloud foundry introduction
 
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)
 
CF SUMMIT: Partnerships, Business and Cloud Foundry
CF SUMMIT: Partnerships, Business and Cloud FoundryCF SUMMIT: Partnerships, Business and Cloud Foundry
CF SUMMIT: Partnerships, Business and Cloud Foundry
 
Cloud native Microservices using Spring Boot
Cloud native Microservices using Spring BootCloud native Microservices using Spring Boot
Cloud native Microservices using Spring Boot
 
Architecture & Operations
Architecture & OperationsArchitecture & Operations
Architecture & Operations
 
Docker Service Broker for Cloud Foundry
Docker Service Broker for Cloud FoundryDocker Service Broker for Cloud Foundry
Docker Service Broker for Cloud Foundry
 
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 architecture and deep dive
Cloud foundry architecture and deep diveCloud foundry architecture and deep dive
Cloud foundry architecture and deep dive
 
PCF Architecture
PCF Architecture PCF Architecture
PCF Architecture
 
Pivotal Power Lunch - Why Cloud Native?
Pivotal Power Lunch - Why Cloud Native?Pivotal Power Lunch - Why Cloud Native?
Pivotal Power Lunch - Why Cloud Native?
 
Manchester geek night pcf 101
Manchester geek night   pcf 101Manchester geek night   pcf 101
Manchester geek night pcf 101
 
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
 

Ähnlich wie Deploy your Multi-tier Application in Cloud Foundry

5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
NomanKhalid56
 
Cassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stackCassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stack
DataStax Academy
 

Ähnlich wie Deploy your Multi-tier Application in Cloud Foundry (20)

Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring CloudSimplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
 
PartnerSkillUp_Enable a Streaming CDC Solution
PartnerSkillUp_Enable a Streaming CDC SolutionPartnerSkillUp_Enable a Streaming CDC Solution
PartnerSkillUp_Enable a Streaming CDC Solution
 
MongoDB Days UK: No Compromises SQL Connectivity for MongoDB
MongoDB Days UK: No Compromises SQL Connectivity for MongoDBMongoDB Days UK: No Compromises SQL Connectivity for MongoDB
MongoDB Days UK: No Compromises SQL Connectivity for MongoDB
 
Improvements in OpenStack Integration for Application Developers
Improvements in OpenStack Integration for Application DevelopersImprovements in OpenStack Integration for Application Developers
Improvements in OpenStack Integration for Application Developers
 
OpenStack + CloudFoundry Austin Meetup
OpenStack + CloudFoundry Austin MeetupOpenStack + CloudFoundry Austin Meetup
OpenStack + CloudFoundry Austin Meetup
 
Mstr meetup
Mstr meetupMstr meetup
Mstr meetup
 
CloudStack Metering – Working with the Usage Data
CloudStack Metering – Working with the Usage DataCloudStack Metering – Working with the Usage Data
CloudStack Metering – Working with the Usage Data
 
CloudStack Metering – Working with the Usage Data
CloudStack Metering – Working with the Usage DataCloudStack Metering – Working with the Usage Data
CloudStack Metering – Working with the Usage Data
 
Intro to Big Data - Orlando Code Camp 2014
Intro to Big Data - Orlando Code Camp 2014Intro to Big Data - Orlando Code Camp 2014
Intro to Big Data - Orlando Code Camp 2014
 
Cisco Connect Ottawa 2018 consuming public and private clouds
Cisco Connect Ottawa 2018 consuming public and private cloudsCisco Connect Ottawa 2018 consuming public and private clouds
Cisco Connect Ottawa 2018 consuming public and private clouds
 
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
5675212318661411677_TRN4034_How_to_Migrate_to_Oracle_Autonomous_Database_Clou...
 
Explore Advanced CA Release Automation Configuration Topics
Explore Advanced CA Release Automation Configuration TopicsExplore Advanced CA Release Automation Configuration Topics
Explore Advanced CA Release Automation Configuration Topics
 
Whats the Use!? (Real Customer Use-Cases)
Whats the Use!? (Real Customer Use-Cases)Whats the Use!? (Real Customer Use-Cases)
Whats the Use!? (Real Customer Use-Cases)
 
API Deep Dive: APIC EM Rest API
API Deep Dive: APIC EM Rest API API Deep Dive: APIC EM Rest API
API Deep Dive: APIC EM Rest API
 
Cassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stackCassandra Adoption on Cisco UCS & Open stack
Cassandra Adoption on Cisco UCS & Open stack
 
Meetup bangalore aug31st2019
Meetup bangalore aug31st2019Meetup bangalore aug31st2019
Meetup bangalore aug31st2019
 
DevFest | Presentation | Final - Imran Roshan
DevFest | Presentation | Final - Imran RoshanDevFest | Presentation | Final - Imran Roshan
DevFest | Presentation | Final - Imran Roshan
 
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
Oracle zdm Migrate Amazon RDS Oracle to Oracle Autonomous 2021 Kamalesh Ramas...
 
Service Mesh @Lara Camp Myanmar - 02 Sep,2023
Service Mesh @Lara Camp Myanmar - 02 Sep,2023Service Mesh @Lara Camp Myanmar - 02 Sep,2023
Service Mesh @Lara Camp Myanmar - 02 Sep,2023
 
Microsoft Azure Traffic Manager
Microsoft Azure Traffic ManagerMicrosoft Azure Traffic Manager
Microsoft Azure Traffic Manager
 

Mehr von cornelia davis

Velocity NY 2016 - Devops: Who Does What?
Velocity NY 2016 - Devops: Who Does What?Velocity NY 2016 - Devops: Who Does What?
Velocity NY 2016 - Devops: Who Does What?
cornelia davis
 

Mehr von cornelia davis (20)

You've Made Kubernetes Available to Your Developers, Now What?
You've Made Kubernetes Available to Your Developers, Now What?You've Made Kubernetes Available to Your Developers, Now What?
You've Made Kubernetes Available to Your Developers, Now What?
 
You Might Just be a Functional Programmer Now
You Might Just be a Functional Programmer NowYou Might Just be a Functional Programmer Now
You Might Just be a Functional Programmer Now
 
Kubernetes: one cluster or many
Kubernetes:  one cluster or many Kubernetes:  one cluster or many
Kubernetes: one cluster or many
 
Pivotal Container Service (PKS) at SF Cloud Foundry Meetup
Pivotal Container Service (PKS) at SF Cloud Foundry MeetupPivotal Container Service (PKS) at SF Cloud Foundry Meetup
Pivotal Container Service (PKS) at SF Cloud Foundry Meetup
 
It’s Not Just Request/Response: Understanding Event-driven Microservices
It’s Not Just Request/Response: Understanding Event-driven MicroservicesIt’s Not Just Request/Response: Understanding Event-driven Microservices
It’s Not Just Request/Response: Understanding Event-driven Microservices
 
Cloud Native Architectures for Devops
Cloud Native Architectures for DevopsCloud Native Architectures for Devops
Cloud Native Architectures for Devops
 
Cloud-native Data
Cloud-native DataCloud-native Data
Cloud-native Data
 
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-nativeKubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
Kubo (Cloud Foundry Container Platform): Your Gateway Drug to Cloud-native
 
Cloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant SoftwareCloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant Software
 
Cloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant SoftwareCloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant Software
 
Cloud-native Data: Every Microservice Needs a Cache
Cloud-native Data: Every Microservice Needs a CacheCloud-native Data: Every Microservice Needs a Cache
Cloud-native Data: Every Microservice Needs a Cache
 
Devops: Who Does What? - Devops Enterprise Summit 2016
Devops: Who Does What? - Devops Enterprise Summit 2016Devops: Who Does What? - Devops Enterprise Summit 2016
Devops: Who Does What? - Devops Enterprise Summit 2016
 
Velocity NY 2016 - Devops: Who Does What?
Velocity NY 2016 - Devops: Who Does What?Velocity NY 2016 - Devops: Who Does What?
Velocity NY 2016 - Devops: Who Does What?
 
Devops Enterprise Summit: My Great Awakening: ‹Top “Ah-ha” Moments As Former ...
Devops Enterprise Summit: My Great Awakening: ‹Top “Ah-ha” Moments As Former ...Devops Enterprise Summit: My Great Awakening: ‹Top “Ah-ha” Moments As Former ...
Devops Enterprise Summit: My Great Awakening: ‹Top “Ah-ha” Moments As Former ...
 
Linux Collaboration Summit Keynote: Transformation: It Takes a Platform
Linux Collaboration Summit Keynote: Transformation: It Takes a PlatformLinux Collaboration Summit Keynote: Transformation: It Takes a Platform
Linux Collaboration Summit Keynote: Transformation: It Takes a Platform
 
Devops: Enabled Through a Recasting of Operational Roles
Devops: Enabled Through a Recasting of Operational RolesDevops: Enabled Through a Recasting of Operational Roles
Devops: Enabled Through a Recasting of Operational Roles
 
12 Factor, or Cloud Native Apps – What EXACTLY Does that Mean for Spring Deve...
12 Factor, or Cloud Native Apps – What EXACTLY Does that Mean for Spring Deve...12 Factor, or Cloud Native Apps – What EXACTLY Does that Mean for Spring Deve...
12 Factor, or Cloud Native Apps – What EXACTLY Does that Mean for Spring Deve...
 
Removing Barriers Between Dev and Ops
Removing Barriers Between Dev and OpsRemoving Barriers Between Dev and Ops
Removing Barriers Between Dev and Ops
 
Declarative Infrastructure with Cloud Foundry BOSH
Declarative Infrastructure with Cloud Foundry BOSHDeclarative Infrastructure with Cloud Foundry BOSH
Declarative Infrastructure with Cloud Foundry BOSH
 
Cloud Foundry Platform Operations - CF Summit 2015
Cloud Foundry Platform Operations - CF Summit 2015Cloud Foundry Platform Operations - CF Summit 2015
Cloud Foundry Platform Operations - CF Summit 2015
 

KĂŒrzlich hochgeladen

Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Bert Jan Schrijver
 
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 

KĂŒrzlich hochgeladen (20)

Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ đŸ„ Women's Abortion Clinic In Pre...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 

Deploy your Multi-tier Application in Cloud Foundry

  • 1. 1© Copyright 2013 Pivotal. All rights reserved. 1© Copyright 2013 Pivotal. All rights reserved. Deploying a Multi-tier App in Cloud Foundry A tour Cornelia Davis Cloud Foundry Platform Engineering cdavisafc@gopivotal.com | twitter: @cdavisafc | March 2014
  • 2. 2© Copyright 2013 Pivotal. All rights reserved. Let’s push an app
  • 3. 3© Copyright 2013 Pivotal. All rights reserved. Overview: Deploying App to Cloud Foundry Runtime ① Upload app bits and metadata push app Router ② Create and bind services ⑱ Stage application ④ Deploy application â‘€ Manage application health 
which is a whole ‘nother meetup topic Cloud Foundry Runtime (PaaS) Blobstore DB Cloud Controller Service Broker Node(s) DEA DEA DEA DEA + app MD + = Service credentials
  • 4. 4© Copyright 2013 Pivotal. All rights reserved. Software
  • 5. 5© Copyright 2013 Pivotal. All rights reserved. Software is Changing Industries $3.5B valuation –Financial Services $3.5B valuation – Travel & Hospitality $3.5B valuation – Transportation $1.1B acquisition by Monsanto – Agriculture $19B valuation – Entertainment $3.2B acquisition by Google– Digital Home
  • 6. 6© Copyright 2013 Pivotal. All rights reserved. Reference Application from VMWare to demonstrate the vFabric Suite Spring Trader https://github.com/cf-platform-eng/springtrader-cf
  • 7. 7© Copyright 2013 Pivotal. All rights reserved. From here 

  • 8. 8© Copyright 2013 Pivotal. All rights reserved. Agenda  Cross-site scripting  JNDI  Service Catalog  Spring Cloud  Apps and Manifests  Services plans  Auto reconfiguration
  • 9. 9© Copyright 2013 Pivotal. All rights reserved. Cross-site Scripting http://springtrader.com/services http://springtrader.com/web
  • 10. 10© Copyright 2013 Pivotal. All rights reserved. Cross-site Scripting http://traderweb.cfapps.io http://traderservices.cfapps.io
  • 11. 11© Copyright 2013 Pivotal. All rights reserved. Cross-site Scripting http://traderfront.cfapps.io One war file
  • 12. 12© Copyright 2013 Pivotal. All rights reserved. JNDI  Service Instances <jee:jndi-lookup id="dataSource" jndi-name="jdbc/nanodb" />Old:
  • 13. 13© Copyright 2013 Pivotal. All rights reserved. Spring Cloud VCAP_SERVICES locally cf bind-service traderfront devsql cf bind-service traderfront stagingsql OR <cloud:data-source id="dataSource"> <cloud:connection properties="sessionVariables=sql_mode='ANSI'; characterEncoding=UTF-8;defaultTransactionIsolation=2”/> <cloud:pool pool-size="2" max-wait-time="200" /> </cloud:data-source> VCAP_SERVICES={"cleardb- n/a":[{"name":"tradersql","label":"cleardb- n/a","tags":["mysql","relational"],"plan":"spark","credentials":{"jdbcUrl":"jd bc:mysql://baf8a1e6a292a2:79581497@us-cdbr-east- 05.cleardb.net:3306/ad_595d583f143adee","uri":"mysql://baf8a1e6a292a2:79581497 @us-cdbr-east- 05.cleardb.net:3306/ad_595d583f143adee?reconnect=true","name":"ad_595d583f143a dee","hostname":"us-cdbr-east- 05.cleardb.net","port":"3306","username":"baf8a1e6a292a2","password":"79581497 "}}],"cloudamqp-n/a":[{"name":"tradermessaging","label":"cloudamqp- n/a","tags":["amqp","rabbitmq"],"plan":"lemur","credentials":{"uri":"amqp://kl rdpgoo:mLpx_XtpEY7eJg-rG489FRs_J-jArqP6@tiger.cloudamqp.com/klrdpgoo"}}]} New:
  • 14. 14© Copyright 2013 Pivotal. All rights reserved. (Big-A) Applications and Manifests http://traderfront.cfapps.io One war file Another war file
  • 15. 15© Copyright 2013 Pivotal. All rights reserved. (Big-A) Applications and Manifests --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - tradersql - tradermessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront
  • 16. 16© Copyright 2013 Pivotal. All rights reserved. (Big-A) Applications and Manifests --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - tradersql - tradermessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - devsql - devmessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront
  • 17. 17© Copyright 2013 Pivotal. All rights reserved. (Big-A) Applications and Manifests --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - tradersql - tradermessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - devsql - devmessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront --- timeout: 180 memory: 1G domain: cfapps.io instances: 1 services: - stagingsql - stagingmessaging applications: - name: traderback path: dist/spring-nanotrader-asynch-services-1.0.1.BUILD-SNAPSHOT.war host: traderback - name: traderfront path: dist/spring-nanotrader-services-1.0.1.BUILD-SNAPSHOT.war host: traderfront
  • 18. 18© Copyright 2013 Pivotal. All rights reserved. Services Marketplace and Plans
  • 19. 19© Copyright 2013 Pivotal. All rights reserved. Auto-reconfiguration <rabbit:connection-factory id="connectionFactory" host="${NANO_RABBIT_HOST:localhost}" port="${NANO_RABBIT_PORT:5672}"/> Old: New: <cloud:rabbit-connection-factory id="connectionFactory"/> DO NOT USE AUTORECONFIGURATION!! (esp. in production)
  • 20. 20© Copyright 2013 Pivotal. All rights reserved. Pull Requests Welcome!  Cross-site scripting  Session State Caching
  • 21. 21© Copyright 2013 Pivotal. All rights reserved. State, Statelessness and Scale Cloud Controller Health Manager Stateless part of your app Stateful part Browser CLI Native App Mobile App DEA DEA Application Runners (DEA) Router
  • 22. 22© Copyright 2013 Pivotal. All rights reserved. 
 to here
  • 23. A NEW PLATFORM FOR A NEW ERA

Hinweis der Redaktion

  1. Cloud Foundry PaaS An application runs in a DEA, which is a droplet execution agent. The Cloud Controller orchestrates the routing and lifecycle of all DEAs in the pool. Routers manage application traffic. Health Manager reports mismatched application states to the CC. A service broker provides an interface for services (native or external). A messaging bus manages all system communication. Apps are accessed directly through the router while web and CLI clients (e.g., vmc, STS) access Cloud Controller via RESTful services.
  2. Software is eating the world - executives cite software as the top factor impacting their organizations. Companies effectively using software development to achieve competitive advantage are more profitable than their peers
  3. Organizations such as Square ($3.5B valuation, Financial Services), Uber ($3.5B valuation, Transportation), Netflix ($19B valuation, Media and Entertainment), Airbnb ($3.5B valuation, Hospitality), the Climate Corporation ($1.1B acquisition, Agriculture) and Etsy ($600M valuation, Boutique Retail) are using software to change industries and disrupt business models
  4. Push the app
  5. Push the app
  6. Push the app