SlideShare a Scribd company logo
© Copyright 2014 Pivotal. All rights reserved.
The image cannot be
displayed. Your computer may
not have enough memory to
Pivotal Cloud Platform Deep Dive
The Developer Experience
1
© 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
© 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.
Create user account
© Copyright 2015 Pivotal. All rights reserved.
Create user account
© 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
© 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
© 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 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
© 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
© Copyright 2015 Pivotal. All rights reserved.
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 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
© Copyright 2015 Pivotal. All rights reserved.
cf push
Login to the CLI
Clone the app
Push the app
Verify app is running
Application push
© 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
© Copyright 2015 Pivotal. All rights reserved.
© Copyright 2015 Pivotal. All rights reserved.
© 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
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Click on "Marketplace"
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Choose “RabbitMQ for PCF”
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify
Select the free plan
© 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
© 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
Click here
© Copyright 2015 Pivotal. All rights reserved.
Service creation and bind
Create Service
Bind service
Restart App
Verify Heat Map gets
activated as
orders come
© 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.
$
Service creation and bind
Create Service
Bind service
Restart App
Verify
© Copyright 2015 Pivotal. All rights reserved.
The Magic is in Spring Cloud Connectors
http://cloud.spring.io/spring-cloud-connectors
© Copyright 2015 Pivotal. All rights reserved.
Cloud Foundry
Connector
Heroku
Connector
Core
Spring Service
Connector
Spring
Cloud
Connectors
Modules
© Copyright 2015 Pivotal. All rights reserved.
From VCAP_SERVICES to Connection Bean
© Copyright 2015 Pivotal. All rights reserved.
From VCAP_SERVICES to Connection Bean (XML)
© 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
© 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
changing
© 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
43
© 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
cf logs <app name>$
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
© 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.
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
cf events
Kill app
Verify fail-over
Recover failed instance
Logs, Events and Health Management
but… 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 and Index
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
58
© 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 - Session 2 - Architecture & The
Operator Experience
• 2:45 pm - 3:00 pm - Break
• 3:00 pm - 4:00 pm - Session 3 - Enabling Continuous
Delivery
© Copyright 2015 Pivotal. All rights reserved.
The image cannot be
displayed. Your computer may
not have enough memory to
THANK YOU!
See you after the break!

More Related Content

Pivotal CenturyLink Cloud Platform Seminar Presentation: The Developer Experience

  • 1. © Copyright 2014 Pivotal. All rights reserved. The image cannot be displayed. Your computer may not have enough memory to Pivotal Cloud Platform Deep Dive The Developer Experience 1
  • 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. © Copyright 2015 Pivotal. All rights reserved. This is not how you do Cloud Native
  • 4. © Copyright 2015 Pivotal. All rights reserved. This is…. https://www.youtube.com/watch?v=SSxI9eonBVs
  • 5. © Copyright 2015 Pivotal. All rights reserved. Provisioning Your Account for Today http://activate.pcf.centurylinkcloud.com
  • 6. © Copyright 2015 Pivotal. All rights reserved. Create user account
  • 7. © Copyright 2015 Pivotal. All rights reserved. Create user account
  • 8. © 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
  • 9. © 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
  • 10. © Copyright 2015 Pivotal. All rights reserved. Welcome to Cloud Foundry! Pivotal CF
  • 11. © 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
  • 12. © 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
  • 13. © Copyright 2015 Pivotal. All rights reserved. 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
  • 14. © 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
  • 15. © Copyright 2015 Pivotal. All rights reserved. cf push Login to the CLI Clone the app Push the app Verify app is running Application push
  • 16. © 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
  • 17. © Copyright 2015 Pivotal. All rights reserved.
  • 18. © Copyright 2015 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 19
  • 20. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Click on "Marketplace"
  • 21. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Choose “RabbitMQ for PCF”
  • 22. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Select the free plan
  • 23. © 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
  • 24. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  • 25. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  • 26. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Click here
  • 27. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify Heat Map gets activated as orders come
  • 28. © Copyright 2015 Pivotal. All rights reserved. Create Service Bind service Restart App Verify Service creation and bind
  • 29. © Copyright 2015 Pivotal. All rights reserved. …
  • 30. © Copyright 2015 Pivotal. All rights reserved. $ Service creation and bind Create Service Bind service Restart App Verify
  • 31. © Copyright 2015 Pivotal. All rights reserved. The Magic is in Spring Cloud Connectors http://cloud.spring.io/spring-cloud-connectors
  • 32. © Copyright 2015 Pivotal. All rights reserved. Cloud Foundry Connector Heroku Connector Core Spring Service Connector Spring Cloud Connectors Modules
  • 33. © Copyright 2015 Pivotal. All rights reserved. From VCAP_SERVICES to Connection Bean
  • 34. © Copyright 2015 Pivotal. All rights reserved. From VCAP_SERVICES to Connection Bean (XML)
  • 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 35
  • 36. © Copyright 2014 Pivotal. All rights reserved. 36 Scale instances Verify Scale my App
  • 37. © Copyright 2014 Pivotal. All rights reserved. Scale my App
  • 38. © Copyright 2014 Pivotal. All rights reserved.
  • 39. © Copyright 2014 Pivotal. All rights reserved. 39 Scale instances Verify Scale my App
  • 40. © Copyright 2014 Pivotal. All rights reserved. 40 Scale instances Verify Scale my App
  • 41. © Copyright 2014 Pivotal. All rights reserved. 41 Scale instances Verify Scale my App Refresh page and see IP and Index changing
  • 42. © Copyright 2014 Pivotal. All rights reserved. 42 Scale instances Verify Scale my App
  • 43. © 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
  • 44. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  • 45. © 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
  • 46. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  • 47. © Copyright 2014 Pivotal. All rights reserved. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance
  • 48. © Copyright 2014 Pivotal. All rights reserved. Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance
  • 49. © Copyright 2014 Pivotal. All rights reserved. Logs and Health Management cf logs Kill app Verify fail-over Recover failed instance
  • 50. © 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!
  • 51. © 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!
  • 52. © Copyright 2014 Pivotal. All rights reserved. Logs, Events and Health Management cf logs cf events Kill app Verify fail-over Recover failed instance
  • 53. © 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 !!!
  • 54. © 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
  • 55. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  • 56. © 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.
  • 57. © Copyright 2014 Pivotal. All rights reserved. cf logs cf events Kill app Verify fail-over Recover failed instance Logs, Events and Health Management
  • 58. © 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
  • 59. © Copyright 2015 Pivotal. All rights reserved. Service creation and bind Create Service Bind service Restart App Verify
  • 60. © 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
  • 61. © Copyright 2015 Pivotal. All rights reserved. The image cannot be displayed. Your computer may not have enough memory to THANK YOU! See you after the break!