71
BUILT FOR THE SPEED OF BUSINESS The Cloud Foundry Story On Openstack Stuart Charlton Field Engineering, Western Canada

The Cloud Foundry Story on OpenStack

Embed Size (px)

Citation preview

Page 1: The Cloud Foundry Story on OpenStack

BUILT FOR THE SPEED OF BUSINESS

The Cloud Foundry StoryOn OpenstackStuart CharltonField Engineering, Western Canada

Page 2: The Cloud Foundry Story on OpenStack

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

Why?Where?What Is It?

Who Makes It?How does it work?

Page 3: The Cloud Foundry Story on OpenStack

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

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

Paul MaritzCEO, Pivotal

Page 4: The Cloud Foundry Story on OpenStack

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

Members of the Cloud Foundry FoundationPLATINUM

GOLD

SILVER

Page 5: The Cloud Foundry Story on OpenStack

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

What do we mean by “Platform”?

Page 6: The Cloud Foundry Story on OpenStack

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

Pivotal Cloud Platform DemonstrationThe Developer Experience

Page 7: The Cloud Foundry Story on OpenStack

© 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

Page 8: The Cloud Foundry Story on OpenStack

© 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

Page 9: The Cloud Foundry Story on OpenStack

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

https://run.pivotal.io

Page 10: The Cloud Foundry Story on OpenStack

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

1. Download the CLI according to your OS

2. Target the cloud

Page 11: The Cloud Foundry Story on OpenStack

© 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

Page 12: The Cloud Foundry Story on OpenStack

© 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:

[email protected]

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

Page 13: The Cloud Foundry Story on OpenStack

© 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

Page 14: The Cloud Foundry Story on OpenStack

© 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$

Page 15: The Cloud Foundry Story on OpenStack

© 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

Page 16: The Cloud Foundry Story on OpenStack

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

Page 17: The Cloud Foundry Story on OpenStack

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

Page 18: The Cloud Foundry Story on OpenStack

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

Page 19: The Cloud Foundry Story on OpenStack

© 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

Page 20: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

20

Create Service

Bind service

Restart App

Verify

Click on "Marketplace"

Page 21: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

21

Create Service

Bind service

Restart App

Verify

Choose “Cloud AMQP” (RabbitMQ)

Page 22: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

22

Create Service

Bind service

Restart App

Verify

Select the free plan

Page 23: The Cloud Foundry Story on OpenStack

© 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

Page 24: The Cloud Foundry Story on OpenStack

© 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

Page 25: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

25

Create Service

Bind service

Restart App

Verify

Page 26: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

26

Create Service

Bind service

Restart App

Verify

Page 27: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

27

Create Service

Bind service

Restart App

Verify

Click here

Page 28: The Cloud Foundry Story on OpenStack

© 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

Page 29: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Service creation and bind

29

Create Service

Bind service

Restart App

Verify

Page 30: The Cloud Foundry Story on OpenStack

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

Create Service

Bind service

Restart App

Verify

cf env pcfdemo$

Service creation and bind

Page 31: The Cloud Foundry Story on OpenStack

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

$

Service creation and bind

Create Service

Bind service

Restart App

Verify

Page 32: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

The Magic is in Spring Cloud Connectors

32

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

Page 33: The Cloud Foundry Story on OpenStack

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

Cloud FoundryConnector

HerokuConnector

Core

Spring ServiceConnector

SpringCloudConnectorsModules

Page 34: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

From VCAP_SERVICES to Connection Bean

34

Page 35: The Cloud Foundry Story on OpenStack

© 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

Page 36: The Cloud Foundry Story on OpenStack

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

Scale instances

Verify

Scale my App

Page 37: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Scale my App

Page 38: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Page 39: The Cloud Foundry Story on OpenStack

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

Scale instances

Verify

Scale my App

Page 40: The Cloud Foundry Story on OpenStack

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

Scale instances

Verify

Scale my App

Page 41: The Cloud Foundry Story on OpenStack

© 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

Page 42: The Cloud Foundry Story on OpenStack

© 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

Page 43: The Cloud Foundry Story on OpenStack

© 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

Page 44: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs, Events and Health Management

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Page 45: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs and Health Management

cf logs

Kill app

Verify fail-­over

Recover failed instance

Page 46: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Logs and Health Management

cf logs

Kill app

Verify fail-­over

Recover failed instance

Page 47: The Cloud Foundry Story on OpenStack

© 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!

Page 48: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Page 49: The Cloud Foundry Story on OpenStack

© 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 !!!

Page 50: The Cloud Foundry Story on OpenStack

© 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

Page 51: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

Page 52: The Cloud Foundry Story on OpenStack

© 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.

Page 53: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

cf logs

cf events

Kill app

Verify fail-­over

Recover failed instance

Logs, Events and Health Management

Page 54: The Cloud Foundry Story on OpenStack

© 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

Page 55: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 56: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 57: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 58: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

cf pushPCF-demo$

Page 59: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 60: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 61: The Cloud Foundry Story on OpenStack

© Copyright 2015 Pivotal. All rights reserved. Confidential.

Create/Bind New Relic

Re-­push app

Check New Relic

Monitor App Performance

Page 62: The Cloud Foundry Story on OpenStack

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

Cloud Foundry Architecture in Five Steps

Page 63: The Cloud Foundry Story on OpenStack

63Pivotal Confidentia l

Prerequisite: An Infrastructure Cloud

Google

vSphere AmazonOpenStack

Fast, Consistent API Access to Resources

Servers, Networks, Storage, Images

vCloud

Azure

Page 64: The Cloud Foundry Story on OpenStack

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

Page 65: The Cloud Foundry Story on OpenStack

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

Page 66: The Cloud Foundry Story on OpenStack

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

Page 67: The Cloud Foundry Story on OpenStack

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

Page 68: The Cloud Foundry Story on OpenStack

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

Page 69: The Cloud Foundry Story on OpenStack

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 …

Page 70: The Cloud Foundry Story on OpenStack

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

Page 71: The Cloud Foundry Story on OpenStack

A NEW PLATFORM FOR A NEW ERA