The Cloud Foundry Story on OpenStack

Preview:

Citation preview

BUILT FOR THE SPEED OF BUSINESS

The Cloud Foundry StoryOn OpenstackStuart CharltonField Engineering, Western Canada

2© Copyright 2015 Pivotal. All rights reserved. Confidential.

Why?Where?What Is It?

Who Makes It?How does it work?

3© Copyright 2015 Pivotal. All rights reserved. Confidential.

“Cloud is about how computing is done, not where”

Paul MaritzCEO, Pivotal

4© Copyright 2015 Pivotal. All rights reserved. Confidential.

Members of the Cloud Foundry FoundationPLATINUM

GOLD

SILVER

5© Copyright 2015 Pivotal. All rights reserved. Confidential.

What do we mean by “Platform”?

6© Copyright 2015 Pivotal. All rights reserved. Confidential. 6© Copyright 2015 Pivotal. All rights reserved. Confidential.

Pivotal Cloud Platform DemonstrationThe Developer Experience

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

7

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Value to Developers• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

8

• Deploy to different geographies

• 30-­60 second turnaround

• Automated config management

• Automated rapid scale out

• Debug across your cluster

• Validate high availability

• Easy integration with APM

© Copyright 2015 Pivotal. All rights reserved. Confidential. 9

https://run.pivotal.io

© Copyright 2015 Pivotal. All rights reserved. Confidential. 10

1. Download the CLI according to your OS

2. Target the cloud

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

11

© Copyright 2015 Pivotal. All rights reserved. Confidential. 12

https://github.com/Pivotal-­Field-­Engineering/PCF-­demo

Login to the CLI

Clone the app

Push the app

Verify app is running

Application push

cf api api.run.pivotal.io

cf login

$

$

Email:

Password:

me@me.com

**************

© Copyright 2015 Pivotal. All rights reserved. Confidential. 13

https://github.com/Pivotal-­Field-­Engineering/PCF-­demo

Clone or Download

Login to the CLI

Clone the app

Push the app

Verify app is running

Application push

© Copyright 2015 Pivotal. All rights reserved. Confidential. 14

cf push

Login to the CLI

Clone the app

Push the app

Verify app is running

Application push

cd PCF-demo

cf push

$

PCF-demo$

© Copyright 2015 Pivotal. All rights reserved. Confidential. 15

Login to the CLI

Clone the app

Push the app

Verify app is running

Application push

Navigate to the PWS Web Console

© Copyright 2015 Pivotal. All rights reserved. Confidential. 16

© Copyright 2015 Pivotal. All rights reserved. Confidential. 17

© Copyright 2015 Pivotal. All rights reserved. Confidential. 18

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

19

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

20

Create Service

Bind service

Restart App

Verify

Click on "Marketplace"

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

21

Create Service

Bind service

Restart App

Verify

Choose “Cloud AMQP” (RabbitMQ)

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

22

Create Service

Bind service

Restart App

Verify

Select the free plan

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

23

Create Service

Bind service

Restart App

Verify

Give it a name and bind it to the app

© Copyright 2015 Pivotal. All rights reserved. Confidential. 24

Create Service

Bind service

Restart App

Verify

Give it a name and bind it to the app

Service creation and bind

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

25

Create Service

Bind service

Restart App

Verify

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

26

Create Service

Bind service

Restart App

Verify

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

27

Create Service

Bind service

Restart App

Verify

Click here

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

28

Create Service

Bind service

Restart App

Verify Heat Map gets activated as orders come

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

29

Create Service

Bind service

Restart App

Verify

© Copyright 2015 Pivotal. All rights reserved. Confidential. 30

Create Service

Bind service

Restart App

Verify

cf env pcfdemo$

Service creation and bind

© Copyright 2015 Pivotal. All rights reserved. Confidential. 31

$

Service creation and bind

Create Service

Bind service

Restart App

Verify

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Magic is in Spring Cloud Connectors

32

http://cloud.spring.io/spring-­cloud-­connectors

© Copyright 2015 Pivotal. All rights reserved. Confidential. 33

Cloud FoundryConnector

HerokuConnector

Core

Spring ServiceConnector

SpringCloudConnectorsModules

© Copyright 2015 Pivotal. All rights reserved. Confidential.

From VCAP_SERVICES to Connection Bean

34

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

35

© Copyright 2015 Pivotal. All rights reserved. Confidential. 36

Scale instances

Verify

Scale my App

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Scale my App

© Copyright 2015 Pivotal. All rights reserved. Confidential.

© Copyright 2015 Pivotal. All rights reserved. Confidential. 39

Scale instances

Verify

Scale my App

© Copyright 2015 Pivotal. All rights reserved. Confidential. 40

Scale instances

Verify

Scale my App

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

41

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

cf logs pcfdemo$

Logs, Events and Health Management

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

cf events pcfdemo$

Logs, Events and Health Management

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs, Events and Health Management

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs and Health Management

cf logs

Kill app

Verify fail-­over

Recover failed instance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs and Health Management

cf logs

Kill app

Verify fail-­over

Recover failed instance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

Click me!

© Copyright 2015 Pivotal. All rights reserved. Confidential.

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

but… App is still up !!!

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

Refresh page and see IP changing

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

Few seconds and all instances are back again.No intervention needed.

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Developer Experience• Target My Cloud Foundry Provider

• Push My App

• Bind My App to Backing Services

• Scale My App

• Monitor My App’s Logs

• Monitor My App’s Health

• Monitor My App’s Performance

54

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

cf pushPCF-demo$

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

62© Copyright 2015 Pivotal. All rights reserved. Confidential. 62© Copyright 2015 Pivotal. All rights reserved. Confidential.

Cloud Foundry Architecture in Five Steps

63Pivotal Confidentia l

Prerequisite: An Infrastructure Cloud

Google

vSphere AmazonOpenStack

Fast, Consistent API Access to Resources

Servers, Networks, Storage, Images

vCloud

Azure

64Pivotal Confidentia l

1. BOSH: Provision & Deploy Consistently

Google

Cloud Foundry BOSH

vSphere AmazonOpenStack

Multi-­Cloud Declarative Service Deployment, Operations

Prefabricated & Disposable Infrastructure:VM Images are minimal OS (“stemcells”)VMs run & replicate jobs & packages

VMs are disposed and recreated for job changes/upgradesPersistent disks are managed, resized, attached/detached

Result:Automatic health management

No more managing individual servers Rolling / canary updates

vCloud

Azure

65Pivotal Confidentia l

2. Data, CI, and Mobile Services

OthersJenkins Service(CI)

Google

MobileServices

Cloud Foundry BOSH

MySQL

vSphere AmazonOpenStack

Multi-­Cloud Declarative Service Deployment, Operations

All scaled and managed by CF BOSH Redis,

Rabbit MQ

vCloud

Azure

66Pivotal Confidentia l

3. Elastic Runtime (Containers)

Elastic Runtime

Agile Microservices

inContainers

OthersJenkins Service(CI)

Google

Cloud Foundry BOSH

MySQL

vSphere AmazonOpenStack

Multi-­Cloud Declarative Service Deployment, Operations

Elastic managed runtime service integrated into leading data services;; all scaled and managed by CF BOSH

vCloud

Azure

MobileServices

Redis,Rabbit MQ

67Pivotal Confidentia l

4. Service Marketplace

Elastic Runtime

Agile Microservices

InContainers

OthersJenkins Service(CI)

Google

Cloud Foundry BOSH

MySQL

vSphere AmazonOpenStack

Multi-­Cloud Declarative Service Deployment, Operations

Elastic managed runtime service integrated into leading data services;; all scaled and managed by CF BOSH

vCloud

Azure

Service Broker Marketplace

MobileServices

Redis,Rabbit MQ

Expose services in platform marketplace forsharing

68Pivotal Confidentia l

5. Multi-­Tenant Cloud Control

Elastic Runtime

Agile Microservices

InContainers

OthersJenkins Service(CI)

Google

Cloud Foundry BOSH

MySQL

vSphere AmazonOpenStack

Multi-­Cloud Declarative Service Deployment, Operations

Elastic managed runtime service integrated into leading data services;; all scaled and managed by CF BOSH

vCloud

Azure

Service Broker Marketplace

MobileServices

Redis,Rabbit MQ

Expose apps, services for rapid deployment & sharing among teams

Cloud Foundry API

69Pivotal Confidentia l

Cloud Foundry on Open Stack

Neutron

BOSH Release

Keystone Nova CinderGlance Swift(optional)

JobJob

Job

Source Package

Stemcell(Base OS Image)

Cloud Foundry BOSH (Glance Image)

BOSH Release …

70Pivotal Confidentia l

The Cloud Foundry Difference Freedom of deployment options

Rapid responsiveness with container architecture

Open community extension & innovation– Submit a PR, sign the CLA, if it passes CI it likely will be accepted– Cloud Foundry Dojo – gain committer access through 6 weeks of immersion with Pivotal R&D

Rich database & messaging services

PaaS Comparison (2014, slightly out of date): http://www.slideshare.net/Pivotal/paa-­s-­comparison2014v08

A NEW PLATFORM FOR A NEW ERA

Recommended