Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
© Copyright 2014 Pivotal. All rights reserved.
Pivotal Cloud Platform Deep Dive
Part 1: The Developer Experience
Adib Saik...
© Copyright 2015 Pivotal. All rights reserved.
The Developer Experience
• Target CenturyLink Cloud Endpoint
• Push My App
...
© Copyright 2015 Pivotal. All rights reserved.
This is not how you do Cloud Native
© Copyright 2015 Pivotal. All rights reserved.
This is….
https://www.youtube.com/watch?v=SSxI9eonBVs
© Copyright 2015 Pivotal. All rights reserved.
Provisioning Your Account for Today
http://activate.pcf.centurylinkcloud.com
© Copyright 2015 Pivotal. All rights reserved.
Download and Install
Cloud Foundry CLI tool for
your platform.
* Request an...
© Copyright 2015 Pivotal. All rights reserved.
Confirm you can login and
target your cf tool to the
Cloud Foundry endpoint...
© Copyright 2015 Pivotal. All rights reserved.
Welcome to Cloud Foundry!
Pivotal CF
© Copyright 2014 Pivotal. All rights reserved.
The Developer Experience
• Target CenturyLink Cloud PCF Instance
• Push My ...
© Copyright 2015 Pivotal. All rights reserved.
https://github.com/Pivotal-Field-Engineering/PCF-demo
Login to the CLI
Clon...
© Copyright 2015 Pivotal. All rights reserved.
Alternative - https://github.com/Pivotal-Field-Engineering/PCF-demo
Downloa...
© Copyright 2015 Pivotal. All rights reserved.
cf push
Login to the CLI
Clone the app
Push the app
Verify app is running
A...
© Copyright 2015 Pivotal. All rights reserved.
Login to the CLI
Clone the app
Push the app
Verify app is running
Applicati...
© Copyright 2015 Pivotal. All rights reserved.
© Copyright 2014 Pivotal. All rights reserved.
The Developer Experience
• Target My Cloud Foundry Provider
• Push My App
•...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Cl...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Ch...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Se...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Na...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Cl...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify He...
© Copyright 2015 Pivotal. All rights reserved.
Create Service
Bind service
Restart App
Verify
Service creation and bind
© Copyright 2015 Pivotal. All rights reserved.
…
© Copyright 2015 Pivotal. All rights reserved.
The Magic is in Spring Cloud Connectors
http://cloud.spring.io/spring-cloud...
© Copyright 2015 Pivotal. All rights reserved.
Cloud Foundry
Connector
Heroku
Connector
Core
Spring Service
Connector
Spri...
© Copyright 2015 Pivotal. All rights reserved.
From VCAP_SERVICES to Connection Bean
© Copyright 2014 Pivotal. All rights reserved.
The Developer Experience
• Target My Cloud Foundry Provider
• Push My App
•...
© Copyright 2014 Pivotal. All rights reserved. 36
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. 39
Scale instances
Verify
Scale my App
© 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
Refresh page and see
IP and Index ch...
© Copyright 2014 Pivotal. All rights reserved.
The Developer Experience
• Target My Cloud Foundry Provider
• Push My App
•...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
cf logs...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
Logs, Events and Health Management
cf logs
cf events
Kill app
Verify fail-o...
© Copyright 2014 Pivotal. All rights reserved.
Logs and Health Management
cf logs
Kill app
Verify fail-over
Recover failed...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
Logs, Events and Health Management
cf logs
cf events
Kill app
Verify fail-o...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, E...
© Copyright 2014 Pivotal. All rights reserved.
The Developer Experience
• Target My Cloud Foundry Provider
• Push My App
•...
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
© Copyright 2015 Pivotal. All rights reserved.
Coming Up
12:30 pm - 1:15 pm - Networking Lunch
1:15 pm - 2:45 pm - Sessi...
© Copyright 2015 Pivotal. All rights reserved.
THANK YOU!
See you after the break!
Prochain SlideShare
Chargement dans…5
×

The Developer Experience

583 vues

Publié le

This workshop takes the developer through a hands-on 'day in the life of' experience of interacting with Pivotal Cloud Foundry (PCF) on CenturyLink Cloud:

- Target My Pivotal Cloud Foundry Provider - walkthrough of CenturyLink registration, download of CF CLI, target/login into PCF instance
- Walk Through the AppsManager – high level description of layout and functionality of dev console.
- Push My App - push the PCF-demo application, high-level talk through of app push/stage/deploy
- Bind My App to Backing Services - bind PCF Demo to a RabbitMQ service, high-level talk through of service creation/binding, explanation of VCAP_SERVICES and Spring Cloud Connectors for service binding
- Scale My App - scale up, scale down, high-level talk through of dynamic routing
- Monitor My App’s Logs - tail app logs, high-level discussion of loggregator
- Monitor My App’s Health - hit the “kill switch” in PCF-demo, watch the events in the logs, show cf events, watch the app restart, high-level talk through of health manager

Publié dans : Technologie
  • Soyez le premier à commenter

The Developer Experience

  1. 1. © Copyright 2014 Pivotal. All rights reserved. Pivotal Cloud Platform Deep Dive Part 1: The Developer Experience Adib Saikali asaikali@pivotal.io 1
  2. 2. © Copyright 2015 Pivotal. All rights reserved. The Developer Experience • Target CenturyLink Cloud Endpoint • Push My App • Bind My App to Backing Services Plus….. we’ll look at a few other capabilities Scale View Logs and Events Failover
  3. 3. © Copyright 2015 Pivotal. All rights reserved. This is not how you do Cloud Native
  4. 4. © Copyright 2015 Pivotal. All rights reserved. This is…. https://www.youtube.com/watch?v=SSxI9eonBVs
  5. 5. © Copyright 2015 Pivotal. All rights reserved. Provisioning Your Account for Today http://activate.pcf.centurylinkcloud.com
  6. 6. © Copyright 2015 Pivotal. All rights reserved. Download and Install Cloud Foundry CLI tool for your platform. * Request an alternate approach if you cannot install software on your workstation. https://github.com/cloudfoundry/cli/releases
  7. 7. © Copyright 2015 Pivotal. All rights reserved. Confirm you can login and target your cf tool to the Cloud Foundry endpoint we’ll be using throughout the rest of the session
  8. 8. © Copyright 2015 Pivotal. All rights reserved. Welcome to Cloud Foundry! Pivotal CF
  9. 9. © Copyright 2014 Pivotal. All rights reserved. The Developer Experience • Target CenturyLink Cloud PCF Instance • 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
  10. 10. © Copyright 2015 Pivotal. All rights reserved. https://github.com/Pivotal-Field-Engineering/PCF-demo Login to the CLI Clone the app Push the app Verify app is running Application push
  11. 11. © Copyright 2015 Pivotal. All rights reserved. Alternative - https://github.com/Pivotal-Field-Engineering/PCF-demo Download Login to the CLI Clone the app Push the app Verify app is running Application push
  12. 12. © Copyright 2015 Pivotal. All rights reserved. cf push Login to the CLI Clone the app Push the app Verify app is running Application push
  13. 13. © Copyright 2015 Pivotal. All rights reserved. Login to the CLI Clone the app Push the app Verify app is running Application push Navigate to the App Manager
  14. 14. © Copyright 2015 Pivotal. All rights reserved.
  15. 15. © 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 19
  16. 16. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Click on "Marketplace"
  17. 17. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Choose “RabbitMQ for PCF”
  18. 18. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Select the free plan
  19. 19. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Name it “myrabbitmq” and bind it to the app
  20. 20. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  21. 21. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  22. 22. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Click here
  23. 23. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Heat Map gets activated as orders come
  24. 24. © Copyright 2015 Pivotal. All rights reserved. Create Service Bind service Restart App Verify Service creation and bind
  25. 25. © Copyright 2015 Pivotal. All rights reserved. …
  26. 26. © Copyright 2015 Pivotal. All rights reserved. The Magic is in Spring Cloud Connectors http://cloud.spring.io/spring-cloud-connectors
  27. 27. © Copyright 2015 Pivotal. All rights reserved. Cloud Foundry Connector Heroku Connector Core Spring Service Connector Spring Cloud Connectors Modules
  28. 28. © Copyright 2015 Pivotal. All rights reserved. From VCAP_SERVICES to Connection Bean
  29. 29. © 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 35
  30. 30. © Copyright 2014 Pivotal. All rights reserved. 36 Scale instances Verify Scale my App
  31. 31. © Copyright 2014 Pivotal. All rights reserved. Scale my App
  32. 32. © Copyright 2014 Pivotal. All rights reserved.
  33. 33. © Copyright 2014 Pivotal. All rights reserved. 39 Scale instances Verify Scale my App
  34. 34. © Copyright 2014 Pivotal. All rights reserved. 40 Scale instances Verify Scale my App
  35. 35. © Copyright 2014 Pivotal. All rights reserved. 41 Scale instances Verify Scale my App Refresh page and see IP and Index changing
  36. 36. © 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 43
  37. 37. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance cf logs <app name>$ Logs, Events and Health Management
  38. 38. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  39. 39. © Copyright 2014 Pivotal. All rights reserved. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance
  40. 40. © Copyright 2014 Pivotal. All rights reserved. Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance
  41. 41. © 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!
  42. 42. © Copyright 2014 Pivotal. All rights reserved. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance
  43. 43. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management but… App is still up !!!
  44. 44. © 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 and Index changing
  45. 45. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  46. 46. © 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.
  47. 47. © 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 58
  48. 48. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  49. 49. © Copyright 2015 Pivotal. All rights reserved. Coming Up 12:30 pm - 1:15 pm - Networking Lunch 1:15 pm - 2:45 pm - Session 2 - Architecture & The Operator Experience 2:45 pm - 3:00 pm - Break 3:00 pm - 4:00 pm - Session 3 - Enabling Continuous Delivery
  50. 50. © Copyright 2015 Pivotal. All rights reserved. THANK YOU! See you after the break!

×