Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)

2,779
-1

Published on

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 Cloud Foundry 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

Published in: Software

Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)

  1. 1. Pivotal Cloud Platform Deep Dive Part 1: The Developer Experience Pivotal CF Team © Copyright 2014 Pivotal. All rights reserved. 1
  2. 2. 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
  3. 3. https://run.pivotal.io © Copyright 2014 Pivotal. All rights reserved. 3
  4. 4. © Copyright 2014 Pivotal. All rights reserved. 4
  5. 5. © Copyright 2014 Pivotal. All rights reserved. 5
  6. 6. © Copyright 2014 Pivotal. All rights reserved. 6
  7. 7. © Copyright 2014 Pivotal. All rights reserved. 7
  8. 8. © Copyright 2014 Pivotal. All rights reserved. 8
  9. 9. © Copyright 2014 Pivotal. All rights reserved. 9
  10. 10. 1. Download the CLI according to your OS 2. Target the cloud © Copyright 2014 Pivotal. All rights reserved. 10
  11. 11. © Copyright 2014 Pivotal. All rights reserved. Welcome to Cloud Foundry! 11 Pivotal CF
  12. 12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 17. © Copyright 2014 Pivotal. All rights reserved. 17
  18. 18. © Copyright 2014 Pivotal. All rights reserved. 18
  19. 19. © Copyright 2014 Pivotal. All rights reserved. 19
  20. 20. 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
  21. 21. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 21 Create Service Bind service Restart App Verify ! Click on "Marketplace"
  22. 22. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 22 Create Service Bind service Restart App Verify ! Choose “Cloud AMQP” (RabbitMQ)
  23. 23. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 23 Create Service Bind service Restart App Verify ! Select the free plan
  24. 24. 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
  25. 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
  26. 26. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 26 Create Service Bind service Restart App Verify !
  27. 27. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 27 Create Service Bind service Restart App Verify !
  28. 28. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 28 Create Service Bind service Restart App Verify ! Click here
  29. 29. 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
  30. 30. Service creation and bind © Copyright 2014 Pivotal. All rights reserved. 30 Create Service Bind service Restart App Verify !
  31. 31. Service creation and bind Create Service Bind service Restart App Verify ! $ cf env pcfdemo © Copyright 2014 Pivotal. All rights reserved. 31
  32. 32. Service creation and bind $ Create Service Bind service Restart App Verify ! © Copyright 2014 Pivotal. All rights reserved. 32
  33. 33. The Magic is in Spring Cloud Connectors © Copyright 2014 Pivotal. All rights reserved. 33 http://cloud.spring.io/spring-cloud-connectors
  34. 34. Cloud Foundry Connector Heroku Connector Core Spring Service Connector Spring Cloud Connectors Modules © Copyright 2014 Pivotal. All rights reserved. 34
  35. 35. From VCAP_SERVICES to Connection Bean © Copyright 2014 Pivotal. All rights reserved. 35
  36. 36. 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
  37. 37. Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 37
  38. 38. Scale my App © Copyright 2014 Pivotal. All rights reserved.
  39. 39. © Copyright 2014 Pivotal. All rights reserved.
  40. 40. Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 40
  41. 41. Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 41
  42. 42. Scale my App Scale instances Verify ! © Copyright 2014 Pivotal. All rights reserved. 42
  43. 43. 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
  44. 44. 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
  45. 45. 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
  46. 46. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  47. 47. Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  48. 48. Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  49. 49. 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!
  50. 50. 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!
  51. 51. © Copyright 2014 Pivotal. All rights reserved.
  52. 52. 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 !!!
  53. 53. 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.
  54. 54. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  55. 55. 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.
  56. 56. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance © Copyright 2014 Pivotal. All rights reserved.
  57. 57. 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
  58. 58. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  59. 59. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  60. 60. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  61. 61. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved. PCF-demo$ cf push
  62. 62. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  63. 63. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  64. 64. Monitor App Performance Create/Bind New Relic Re-push app Check New Relic © Copyright 2014 Pivotal. All rights reserved.
  65. 65. It’s Time for New Relic © Copyright 2014 Pivotal. All rights reserved. 65
  66. 66. 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
  67. 67. 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 © Copyright 2014 Pivotal. All rights reserved. 67
  68. 68. THANK YOU! See you after the break! © Copyright 2014 Pivotal. All rights reserved. 68
  69. 69. A NEW PLATFORM FOR A NEW ERA

×