Part 1: The Developer Experience with Fred Melo, Community Engineer (Pivotal Cloud Platform Roadshow: Seattle)
Upcoming SlideShare
Loading in...5
×
 

Part 1: The Developer Experience with Fred Melo, Community Engineer (Pivotal Cloud Platform Roadshow: Seattle)

on

  • 589 views

Part 1: The Developer Experience with Fred Melo, Community Engineer ...

Part 1: The Developer Experience with Fred Melo, Community Engineer

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

Statistics

Views

Total Views
589
Views on SlideShare
575
Embed Views
14

Actions

Likes
3
Downloads
40
Comments
0

2 Embeds 14

https://twitter.com 10
http://www.slideee.com 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Part 1: The Developer Experience with Fred Melo, Community Engineer (Pivotal Cloud Platform Roadshow: Seattle) Part 1: The Developer Experience with Fred Melo, Community Engineer (Pivotal Cloud Platform Roadshow: Seattle) Presentation Transcript

  • Pivotal Cloud Platform Deep Dive Part 1: The Developer Experience Pivotal CF Team © Copyright 2014 Pivotal. All rights reserved. 1
  • 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 © Copyright 2014 Pivotal. All rights reserved. 2
  • https://run.pivotal.io © Copyright 2014 Pivotal. All rights reserved. 3 View slide
  • © Copyright 2014 Pivotal. All rights reserved. 4 View slide
  • © 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. 9
  • © Copyright 2014 Pivotal. All rights reserved. 10
  • 1. Download the CLI according to your OS © 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. 10
  • © Copyright 2014 Pivotal. All rights reserved. Welcome to Cloud Foundry! 11 Pivotal CF
  • 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 © Copyright 2014 Pivotal. All rights reserved. 12
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! $ https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api $ api.run.pivotal.io https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ Email: https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ Email: me@me.com https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ me@me.com Email: Password: https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ me@me.com Email: Password: ************** https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! cf api api.run.pivotal.io cf login $ $ me@me.com Email: Password: ************** https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 13
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 14
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 14
  • Clone or Download Application push Login to the CLI Clone the app Push the app Verify app is running ! https://github.com/Pivotal-Field-Engineering/PCF-demo © Copyright 2014 Pivotal. All rights reserved. 14
  • cf push Application push Login to the CLI Clone the app Push the app Verify app is running ! $ © Copyright 2014 Pivotal. All rights reserved. 15
  • $ cd PCF-demo cf push Application push Login to the CLI Clone the app Push the app Verify app is running ! © Copyright 2014 Pivotal. All rights reserved. 15
  • cd PCF-demo cf push PCF-demo$ cf push Application push Login to the CLI Clone the app Push the app Verify app is running ! $ © Copyright 2014 Pivotal. All rights reserved. 15
  • cd PCF-demo cf push PCF-demo$ cf push Application push Login to the CLI Clone the app Push the app Verify app is running ! $ © Copyright 2014 Pivotal. All rights reserved. 15
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! © Copyright 2014 Pivotal. All rights reserved. 16
  • Application push Login to the CLI Clone the app Push the app Verify app is running ! Navigate to the PWS Web Console © Copyright 2014 Pivotal. All rights reserved. 16
  • © Copyright 2014 Pivotal. All rights reserved. 17
  • © Copyright 2014 Pivotal. All rights reserved. 17
  • © Copyright 2014 Pivotal. All rights reserved. 18
  • © Copyright 2014 Pivotal. All rights reserved. 18
  • © Copyright 2014 Pivotal. All rights reserved. 19
  • © Copyright 2014 Pivotal. All rights reserved. 19
  • 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 © Copyright 2014 Pivotal. All rights reserved. 20
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 21 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 21 Create Service Bind service Restart App Verify ! Click on "Marketplace"
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 22 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 22 Create Service Bind service Restart App Verify ! Choose “Cloud AMQP” (RabbitMQ)
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 23 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 23 Create Service Bind service Restart App Verify ! Select the free plan
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 24 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 24 Create Service Bind service Restart App Verify ! Give it a name and bind it to the app
  • Service creation and bind Create Service Bind service Restart App Verify ! Give it a name and bind it to the app © Copyright 2014 Pivotal. All rights reserved. 25
  • Service creation and bind Create Service Bind service Restart App Verify ! Give it a name and bind it to the app © Copyright 2014 Pivotal. All rights reserved. 25
  • Service creation and bind Create Service Bind service Restart App Verify ! Give it a name and bind it to the app © Copyright 2014 Pivotal. All rights reserved. 25
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 26 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 26 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 27 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 28 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 28 Create Service Bind service Restart App Verify ! Click here
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 29 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 29 Create Service Bind service Restart App Verify ! Heat Map gets activated as orders come
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 30 Create Service Bind service Restart App Verify !
  • Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 30 Create Service Bind service Restart App Verify !
  • Service creation and bind Create Service Bind service Restart App Verify ! $ © Copyright 2014 Pivotal. All rights reserved. 31
  • Service creation and bind Create Service Bind service Restart App Verify ! $ cf env pcfdemo © Copyright 2014 Pivotal. All rights reserved. 31
  • Service creation and bind $ Create Service Bind service Restart App Verify ! © Copyright 2014 Pivotal. All rights reserved. 32
  • Service creation and bind $ Create Service Bind service Restart App Verify ! © Copyright 2014 Pivotal. All rights reserved. 32
  • The Magic is in Spring Cloud © Copyright 2014 Pivotal. All rights reserved. 33 http://projects.spring.io/spring-cloud
  • The Magic is in Spring Cloud © Copyright 2014 Pivotal. All rights reserved. 33 http://projects.spring.io/spring-cloud
  • Cloud Foundry Connector Heroku Connector Core Spring Service Connector Spring Cloud Modules © Copyright 2014 Pivotal. All rights reserved. 34
  • From VCAP_SERVICES to Connection Bean © Copyright 2014 Pivotal. All rights reserved. 35
  • From VCAP_SERVICES to Connection Bean © Copyright 2014 Pivotal. All rights reserved. 35
  • 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 © Copyright 2014 Pivotal. All rights reserved. 36
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 37
  • Scale my App © Copyright 2014 Pivotal. All rights reserved.
  • Scale my App © Copyright 2014 Pivotal. All rights reserved.
  • © Copyright 2014 Pivotal. All rights reserved.
  • © Copyright 2014 Pivotal. All rights reserved.
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 40
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 40
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 41
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 42
  • Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 42
  • 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 © Copyright 2014 Pivotal. All rights reserved. 43
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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. $ cf logs pcfdemo
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved. $ cf logs pcfdemo
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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. $ cf events pcfdemo
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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.
  • 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.
  • Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance © 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, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved. Click me!
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved. Click me!
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved. Click me!
  • © 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, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved. but… App is still up !!!
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance Refresh page and see IP changing © 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, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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. Few seconds and all instances are back again. No intervention needed.
  • Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © 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.
  • 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 © Copyright 2014 Pivotal. All rights reserved. 57
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved. PCF-demo$ cf push
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved. PCF-demo$ cf push
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  • It’s Time for New Relic © Copyright 2014 Pivotal. All rights reserved. 65
  • 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 © Copyright 2014 Pivotal. All rights reserved. 66
  • Coming Up • Break (11:30 - 11:45) • Part Two (11:45 - 1:00) • Learn the Cloud Foundry Architecture • Learn CF Operations with Pivotal Ops Manager • Lunch and Keynote (1:00 - 2:30) • Break (2:30 - 2:45) • Part Three (2:45 - 4:00) • Learn How CF Enables Continuous Delivery • Setup a CD Pipeline with Jenkins, Artifactory, CF Client, and PWS • Break (4:00 - 4:15) • Part Four (4:15 - 5:30) • Learn CF Extension Points • Customize a Buildpack -OR- •Write and Deploy a Service Broker © Copyright 2014 Pivotal. All rights reserved. 67
  • THANK YOU! See you after the break! © Copyright 2014 Pivotal. All rights reserved. 68