More Related Content Similar to Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow) (20) More from VMware Tanzu (20) Part 1: The Developer Experience (Pivotal Cloud Platform Roadshow)1. Pivotal Cloud Platform Deep Dive
Part 1: The Developer Experience
Pivotal CF Team
© Copyright 2014 Pivotal. All rights reserved.
1
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
10. 1. Download the CLI
according to your OS
2. Target the cloud
© Copyright 2014 Pivotal. All rights reserved. 10
11. © Copyright 2014 Pivotal. All rights reserved.
Welcome to Cloud Foundry!
11
Pivotal CF
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. 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. 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. 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. 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
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. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
21
Create Service
Bind service
Restart App
Verify
!
Click on "Marketplace"
22. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
22
Create Service
Bind service
Restart App
Verify
!
Choose “Cloud AMQP” (RabbitMQ)
23. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
23
Create Service
Bind service
Restart App
Verify
!
Select the free plan
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. 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. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
26
Create Service
Bind service
Restart App
Verify
!
27. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
27
Create Service
Bind service
Restart App
Verify
!
28. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
28
Create Service
Bind service
Restart App
Verify
!
Click here
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. Service creation and bind
© Copyright 2014 Pivotal. All rights reserved.
30
Create Service
Bind service
Restart App
Verify
!
31. Service creation and bind
Create Service
Bind service
Restart App
Verify
!
$ cf env pcfdemo
© Copyright 2014 Pivotal. All rights reserved. 31
32. Service creation and bind
$
Create Service
Bind service
Restart App
Verify
!
© Copyright 2014 Pivotal. All rights reserved. 32
33. The Magic is in Spring Cloud Connectors
© Copyright 2014 Pivotal. All rights reserved.
33
http://cloud.spring.io/spring-cloud-connectors
34. Cloud Foundry
Connector
Heroku
Connector
Core
Spring Service
Connector
Spring
Cloud
Connectors
Modules
© Copyright 2014 Pivotal. All rights reserved. 34
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. Scale my App
Scale instances
Verify
!
© Copyright 2014 Pivotal. All rights reserved. 37
38. Scale my App
© Copyright 2014 Pivotal. All rights reserved.
40. Scale my App
Scale instances
Verify
!
© Copyright 2014 Pivotal. All rights reserved. 40
41. Scale my App
Scale instances
Verify
!
© Copyright 2014 Pivotal. All rights reserved. 41
42. Scale my App
Scale instances
Verify
!
© Copyright 2014 Pivotal. All rights reserved. 42
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. 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. 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. Logs, Events and Health Management
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
© Copyright 2014 Pivotal. All rights reserved.
47. Logs and Health Management
cf logs
Kill app
Verify fail-over
Recover failed instance
© Copyright 2014 Pivotal. All rights reserved.
48. Logs and Health Management
cf logs
Kill app
Verify fail-over
Recover failed instance
© Copyright 2014 Pivotal. All rights reserved.
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. 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!
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. 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. Logs, Events and Health Management
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
© Copyright 2014 Pivotal. All rights reserved.
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. Logs, Events and Health Management
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
© Copyright 2014 Pivotal. All rights reserved.
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. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
59. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
60. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
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. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
63. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
64. Monitor App Performance
Create/Bind New Relic
Re-push app
Check New Relic
© Copyright 2014 Pivotal. All rights reserved.
65. It’s Time for New Relic
© Copyright 2014 Pivotal. All rights reserved.
65
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. 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. THANK YOU!
See you after the break!
© Copyright 2014 Pivotal. All rights reserved.
68