part 1: the developer experience (pivotal cloud platform roadshow)

Post on 15-Jan-2015

1.204 Views

Category:

Software

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

Part 1: The Developer Experience This workshop introduces the business “why” of Cloud Foundry with a nod to Microservices architectures. It then takes the developer through a hands-on “day in the life” experience of interacting with Pivotal Web Services: Target My Cloud Foundry Provider - walkthrough of PWS registration, download CF CLI, target/login Push My App - push the Spring Music application, high-level talk through of app push/stage/deploy Bind My App to Backing Services - bind Spring Music to an ElephantSQL PostgreSQL database, high-level talk through of service creation/binding, explain VCAP_SERVICES, point to Spring Cloud Scale My App - push cf-scale-boot application, scale up, scale down, high-level talk through of dynamic routing Monitor My App’s Logs - tail cf-scale-boot logs, high-level discussion of loggregator Monitor My App’s Health - hit the “kill switch” in cf-scale-boot, watch the events in the logs, show cf events, watch the app restart, high-level talk through of health manager Monitor My App’s Performance - bind to New Relic service, re-push application, high-level discussion of NR agent fetching via BP, poke around in NR interface Pivotal Cloud Platform Roadshow is coming to a city near you! Join Pivotal technologists and learn how to build and deploy great software on a modern cloud platform. Find your city and register now http://bit.ly/1poA6PG

TRANSCRIPT

© Copyright 2014 Pivotal. All rights reserved.

Pivotal Cloud Platform Deep DivePart 1: The Developer Experience

Pivotal CF Team

1

© Copyright 2014 Pivotal. All rights reserved.

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

2

© Copyright 2014 Pivotal. All rights reserved. 3

https://run.pivotal.io

© Copyright 2014 Pivotal. All rights reserved. 4

© Copyright 2014 Pivotal. All rights reserved. 5

© Copyright 2014 Pivotal. All rights reserved. 6

© Copyright 2014 Pivotal. All rights reserved. 7

© Copyright 2014 Pivotal. All rights reserved. 8

© Copyright 2014 Pivotal. All rights reserved. 9

© Copyright 2014 Pivotal. All rights reserved. 10

1. Download the CLI according to your OS

2. Target the cloud

© Copyright 2014 Pivotal. All rights reserved.

Welcome to Cloud Foundry!

11

Pivotal CF

© Copyright 2014 Pivotal. All rights reserved.

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

12

© Copyright 2014 Pivotal. All rights reserved. 13

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 2014 Pivotal. All rights reserved. 14

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 2014 Pivotal. All rights reserved. 15

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 2014 Pivotal. All rights reserved. 16

Login to the CLI

Clone the app

Push the app

Verify app is running

!

Application push

Navigate to the PWS Web Console

© Copyright 2014 Pivotal. All rights reserved. 17

© Copyright 2014 Pivotal. All rights reserved. 18

© Copyright 2014 Pivotal. All rights reserved. 19

© Copyright 2014 Pivotal. All rights reserved.

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

20

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

21

Create Service

Bind service

Restart App

Verify

!

Click on "Marketplace"

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

22

Create Service

Bind service

Restart App

Verify

!

Choose “Cloud AMQP” (RabbitMQ)

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

23

Create Service

Bind service

Restart App

Verify

!

Select the free plan

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

24

Create Service

Bind service

Restart App

Verify

!

Give it a name and bind it to the app

© Copyright 2014 Pivotal. All rights reserved. 25

Create Service

Bind service

Restart App

Verify

!

Give it a name and bind it to the app

Service creation and bind

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

26

Create Service

Bind service

Restart App

Verify

!

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

27

Create Service

Bind service

Restart App

Verify

!

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

28

Create Service

Bind service

Restart App

Verify

!

Click here

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

29

Create Service

Bind service

Restart App

Verify

! Heat Map gets activated as orders come

© Copyright 2014 Pivotal. All rights reserved.

Service creation and bind

30

Create Service

Bind service

Restart App

Verify

!

© Copyright 2014 Pivotal. All rights reserved. 31

Create Service

Bind service

Restart App

Verify

!

cf env pcfdemo $

Service creation and bind

© Copyright 2014 Pivotal. All rights reserved. 32

$

Service creation and bind

Create Service

Bind service

Restart App

Verify

!

© Copyright 2014 Pivotal. All rights reserved.

The Magic is in Spring Cloud Connectors

33

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

© Copyright 2014 Pivotal. All rights reserved. 34

Cloud Foundry Connector

Heroku Connector

Core

Spring Service Connector

Spring Cloud Connectors Modules

© Copyright 2014 Pivotal. All rights reserved.

From VCAP_SERVICES to Connection Bean

35

© Copyright 2014 Pivotal. All rights reserved.

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

36

© Copyright 2014 Pivotal. All rights reserved. 37

Scale instances

Verify

!

Scale my App

© Copyright 2014 Pivotal. All rights reserved.

Scale my App

© Copyright 2014 Pivotal. All rights reserved.

© Copyright 2014 Pivotal. All rights reserved. 40

Scale instances

Verify

!

Scale my App

© Copyright 2014 Pivotal. All rights reserved. 41

Scale instances

Verify

!

Scale my App

© Copyright 2014 Pivotal. All rights reserved. 42

Scale instances

Verify

!

Scale my App

© Copyright 2014 Pivotal. All rights reserved.

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

43

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

cf logs pcfdemo $

Logs, Events and Health Management

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

cf events pcfdemo $

Logs, Events and Health Management

© Copyright 2014 Pivotal. All rights reserved.

Logs, Events and Health Management

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

© Copyright 2014 Pivotal. All rights reserved.

Logs and Health Management

cf logs

Kill app

Verify fail-over

Recover failed instance

© Copyright 2014 Pivotal. All rights reserved.

Logs and Health Management

cf logs

Kill app

Verify fail-over

Recover failed instance

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Management

Click me!

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Management

Click me!

© Copyright 2014 Pivotal. All rights reserved.

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Managementbut… App is still up !!!

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Management

Refresh page and see IP changing

© Copyright 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Management

© Copyright 2014 Pivotal. All rights reserved.

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 2014 Pivotal. All rights reserved.

cf logs

cf events

Kill app

Verify fail-over

Recover failed instance

Logs, Events and Health Management

© Copyright 2014 Pivotal. All rights reserved.

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

57

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

cf push PCF-demo$

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

Create/Bind New Relic

Re-push app

Check New Relic

Monitor App Performance

© Copyright 2014 Pivotal. All rights reserved.

It’s Time for New Relic

65

© Copyright 2014 Pivotal. All rights reserved.

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

66

© Copyright 2014 Pivotal. All rights reserved.

Coming Up•Break (11:30 - 11:45)

• Part Two (11:45 - 1:00)

•Architecture and Operations

• Lunch and Keynote (1:00 - 2:30)

•Break (2:30 - 2:45)

• Part Three (2:45 - 4:00)

• Enabling Continuous Delivery

•Break (4:00 - 4:15)

• Part Four (4:15 - 5:30)

•Custom Buildpacks & Data Services

•DEMO: Write and Deploy a Service Broker

67

© Copyright 2014 Pivotal. All rights reserved.

THANK YOU!See you after the break!

68

A NEW PLATFORM FOR A NEW ERA

top related