pivotal centurylink cloud platform seminar presentation: the developer experience
TRANSCRIPT
© Copyright 2014 Pivotal. All rights reserved.
Pivotal Cloud Platform Deep DivePart 1: The Developer Experience
Andrew Ripka [email protected] @rippmn
1
© Copyright 2015 Pivotal. All rights reserved.
The Developer Experience• Target CenturyLink Cloud Endpoint
• Push My App
• Bind My App to Backing Services
© Copyright 2015 Pivotal. All rights reserved.
Twin Cities Cloud Foundry Meetup
http://www.meetup.com/Twin-Cities-MN-Cloud-Foundry-Meetup/
Social Networking Meeting 4:00PM Downstairs
© 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 Todayhttp://activate.pcf.centurylinkcloud.com
© 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 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.
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 pushNavigate to the App Manager
© 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
17
© 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.
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 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
32
© Copyright 2014 Pivotal. All rights reserved. 38
Scale instances
Verify
Scale my App
Refresh page and see IP and Index changing
© 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
39
© Copyright 2014 Pivotal. All rights reserved.
cf logs
cf events
Kill app
Verify fail-over
Recover failed instance
cf logs pcfdemo $
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.
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 Managementbut… 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.
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
50
© 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
• 4:00 pm - Wrap up - Social networking Cloud Foundry Meetup (Downstairs)