architecture & operations
TRANSCRIPT
© Copyright 2014 Pivotal. All rights reserved.
Pivotal Cloud Platform Deep DivePart 2: Architecture and The Operator ExperienceSani Chabi [email protected]
1
Keith [email protected] @keithresar
© Copyright 2015 Pivotal. All rights reserved.
Architecture and the Operator Experience• Pivotal Cloud Foundry Architecture
• Structured Platform for Cloud Native Apps • One Click CenturyLink Ops Manager and CenturyLink
Dashboard• The Operator Experience
© Copyright 2014 Pivotal. All rights reserved.
Moore’s Law Of Applications The Good Old Days
– 3 applications– Physical Servers + Scripts
Present Day– 300+ applications– IAAS + CAPS
The Future– 30,000 applications– ?
PROBLEM SPACE
© Copyright 2014 Pivotal. All rights reserved.
Plus…
And many more….
© Copyright 2014 Pivotal. All rights reserved.
Operation agility as the secret sauce
© Copyright 2014 Pivotal. All rights reserved. 6
A STRUCTURE PLATFORM
• Self-service provisioning with RBA• Many Touch points to ONE Platform• Configuration changes• Updates/upgrades• Remediation• Scale out/Scale in• Immutable environment
Amend
(Re)deploy
(Re)configure
(Re)connect
Monitor
Current State Desired
State
© Copyright 2014 Pivotal. All rights reserved. 7
2 Key Components to Pivotal Cloud Foundry
Ops Manager/ Operations Manager: A web application that you use to deploy and manage a Pivotal Cloud Foundry PaaS
Elastic Runtime: The set of core Cloud Foundry services that are installed, upgraded and scaled via Ops Manager
© Copyright 2014 Pivotal. All rights reserved. 8
Loggregator DEA Pool
Router Cloud Controller
BOSH Director BOSH Agent
UAA/Login Servers Health Manager
Service Broker Node(s)
Messaging (NATS)
IaaS
Cloud Foundry Architecture Stack
© Copyright 2014 Pivotal. All rights reserved. 9
Pivotal CF deployment on CenturyLink Cloud
© Copyright 2014 Pivotal. All rights reserved. 10
© Copyright 2014 Pivotal. All rights reserved. 11
© Copyright 2014 Pivotal. All rights reserved. 12
© Copyright 2014 Pivotal. All rights reserved. 13
© Copyright 2014 Pivotal. All rights reserved. 14
© Copyright 2014 Pivotal. All rights reserved. 15
© Copyright 2014 Pivotal. All rights reserved. 16
© Copyright 2014 Pivotal. All rights reserved. 17
© Copyright 2014 Pivotal. All rights reserved. 18
© Copyright 2014 Pivotal. All rights reserved. 19
© Copyright 2014 Pivotal. All rights reserved. 20
© Copyright 2014 Pivotal. All rights reserved. 21
© Copyright 2014 Pivotal. All rights reserved. 22
© Copyright 2014 Pivotal. All rights reserved.
Demo
© Copyright 2014 Pivotal. All rights reserved.© Copyright 2014 Pivotal. All rights reserved.
What’s on Pivotal Cloud Foundry for an operator?
24
© Copyright 2014 Pivotal. All rights reserved. 25
Pivotal Cloud Foundry operations
Developer Operator
© Copyright 2014 Pivotal. All rights reserved. 26
Install runtime and container
Deploy to dev
© Copyright 2014 Pivotal. All rights reserved. 27
Install runtime and container
Install services (db, messaging, hadoop, …)
Deploy to dev
© Copyright 2014 Pivotal. All rights reserved. 28
Install runtime and container
Install services (db, messaging, hadoop, …)
Setup load-balancing, SSL termination and dynamic routing
Deploy to dev
© Copyright 2014 Pivotal. All rights reserved. 29
Install runtime and container
Setup load-balancing, SSL termination and dynamic routing
Setup / config High Availability
Deploy to dev
Install services (db, messaging, hadoop, …)
© Copyright 2014 Pivotal. All rights reserved. 30
Install runtime and container
Setup load-balancing, SSL termination and dynamic routingSetup / config High Availability
Setup APM
Deploy to dev
Install services (db, messaging, hadoop, …)
© Copyright 2014 Pivotal. All rights reserved. 31
Install runtime and container
Setup load-balancing, SSL termination and dynamic routingSetup / config High Availability
Setup APM
Setup log streaming
Deploy to dev
Install services (db, messaging, hadoop, …)
© Copyright 2014 Pivotal. All rights reserved. 32
Install runtime and container
Setup load-balancing, SSL termination and dynamic routingSetup / config High Availability
Setup APM
Setup log streaming
Deploy to dev
App Deployed
Install services (db, messaging, hadoop, …)
© Copyright 2014 Pivotal. All rights reserved. 33
Install runtime and container
Install services (db, messaging, hadoop, …)
Setup load-balancing and dynamic routing
Setup / config High Availability
Setup APM
Setup log streaming
Deploy to dev
Deploy to Test
Deploy to QA
Promote to production
Scale up
Update app
Scale down
Redeploy
Unbind service
Bind service
Restart server
Change route
Scale Platform
Create service
Delete App
Blue-green deployment
Check logsscale memory
Update app server
Change JDK
Upgrade app
© Copyright 2014 Pivotal. All rights reserved. 34
Install runtime and container
Install services (db, messaging, hadoop, …)
Setup load-balancing and dynamic routing
Setup / config High Availability
Setup APM
Setup log streaming
Deploy to dev
Deploy to Test
Deploy to QA
Promote to production
Scale up
Update app
Scale down
Redeploy
Unbind service
Bind service
Restart server
Change route
Scale Platform
Create service
Delete App
Blue-green deployment
Check logsEscale memory
Update app server
Change JDK
Upgrade app
© Copyright 2014 Pivotal. All rights reserved.
Deploy to dev
The Pivotal CF way
© Copyright 2014 Pivotal. All rights reserved.
Deploy to dev
> cf pushCloud
ControllerHealth
Manager
NATS(message
bus)
RouterApp Deployed
The Pivotal CF way
© Copyright 2014 Pivotal. All rights reserved. 37
Operator Concerns Monitor the
platformHandle upgrades and updates
Plan capacity
Manage users Quotas and services
Setup High Availability
© Copyright 2014 Pivotal. All rights reserved. 38
Orgs, Spaces, Users and Quotas
© Copyright 2014 Pivotal. All rights reserved.
Self-service with RBACSOLUTION SPACE
PIVOTAL CLOUD FOUNDRY
IMMUTABLE SELF-SERVICE PROVISIONING PLATFORM
RBAC• Organization, User role, Space• New environment in seconds• SSO with your existing IP (AD,
LDAP, SAML2)
ADMIN CONTROLS• Set limits on Key resources• Set Quotas per Orgs.• Fine grained control to restrict
inbound/outbound traffic.
MARKETPLACE• Self-provisioning on services (Data
Services, mobiles services, etc.)• PCF Managed and 3rd party
provided services
© Copyright 2014 Pivotal. All rights reserved.
What about my legacy services?
© Copyright 2014 Pivotal. All rights reserved.
SOLUTION SPACE
© Copyright 2014 Pivotal. All rights reserved.
Service Broker options
Service Broker
Service Broker
Service Broker
IBM DB2ORACLE DB
MongoLab
Send Grid
AppDirect
ClearDB
INTE
RN
ETSynchronous
ORACLE DB
SOLUTION SPACE
© Copyright 2014 Pivotal. All rights reserved. 43
Demo
© Copyright 2014 Pivotal. All rights reserved. 44
Operator Concerns
Monitor the platform
Handle upgrades and updates
Plan capacity
Manage users Quotas and services
Setup High Availability
© Copyright 2014 Pivotal. All rights reserved. 45
Provision services, not machinesEnables continuous delivery
Cloud-agnostic view of Platform Ops
Holistic Toolchain for “rule them all"
Eliminate bespoke automation on top of config management
Why BOSH
© Copyright 2014 Pivotal. All rights reserved. 46
The BOSH Architecture
Very similar to CF architecture itself
Director as analogy to Cloud ControllerDifferent CPIs exist per IaaS implementationWorkers responsible for executing tasks as dictated by Director
© Copyright 2014 Pivotal. All rights reserved.
How about and CF?
47
© Copyright 2014 Pivotal. All rights reserved. 48
IaaS
BOSH Director BOSH Agent
Mobile Servicesfor Pivotal CF
ElasticSearch for Pivotal CF
CloudBees JenkinsEnterprise
Cassandrafor Pivotal CF
© Copyright 2014 Pivotal. All rights reserved. 49
IaaS
BOSH Director BOSH Agent
Mobile Servicesfor Pivotal CF
ElasticSearch for Pivotal CF
CloudBees JenkinsEnterprise
Cassandrafor Pivotal CF
Click to installNo downtime updatesExplore install logs
Click to scale the platform
Built-in High Availability
Built-in Platform Monitoring
Integrated services
© Copyright 2014 Pivotal. All rights reserved. 50
IaaS
BOSH Director BOSH Agent
Mobile Servicesfor Pivotal CF
ElasticSearch for Pivotal CF
CloudBees JenkinsEnterprise
Cassandrafor Pivotal CF
BOSH releases
CF
© Copyright 2014 Pivotal. All rights reserved.
PCF – Each Layer Upgradable with Zero Downtime
runtime layer
OS image
application layer
PCF Buildpack Apps
linux host & kernel
App container
PCF Supported
Dev Supported
Ops Supported
• Platform Provided• CVEs addressed by
Pivotal• Canary-style, zero-
downtime upgrades
• Platform or Developer Provided
• CVEs addressed by Pivotal (for Platform Provided)
• Blue/Green deployments
• Developer/App team provided
• Blue/Green deployments
© Copyright 2014 Pivotal. All rights reserved.
Demo: How long does it take you to deploy a patch in production?
Demo
© Copyright 2014 Pivotal. All rights reserved. 53
Operator Concerns
Monitor the platform
Handle upgrades and updates
Plan capacity
Manage users quotas and services
Setup High Availability
© Copyright 2014 Pivotal. All rights reserved. 54
Platform Monitoring
How do I know when to scale DEAs?How many requests each Router is servicing?
What is the current load of my Cloud Controllers?
© Copyright 2014 Pivotal. All rights reserved. 55
Platform Monitoring
Collector
JMX Provider
JMX Monitoring Tool
© Copyright 2014 Pivotal. All rights reserved. 56
Platform Monitoring
Collector
JMX Provider
JMX Monitoring Tool
© Copyright 2014 Pivotal. All rights reserved.
Monitoring in Pivotal Cloud Foundry
APPLICATIONS
• CLI: cf logs <appname>• Apps Manager• ELK tile• RBAC
PLATFORM
• SYSLOG Endpoint• Configuration via Ops
Manager• Logs Search & Persistence
such as ELK• Only accessible by Admins
• Collector Component with plugins for JMX and Datadog
• Ops Metrics tile • Firehose
M
ETRI
CS • Agentless APM• APM Integrations through
buildpacks
LOGS
© Copyright 2014 Pivotal. All rights reserved. 58
Operator Concerns
Monitor the platform
Handle upgrades and updates
Plan capacity
Manage users Quotas and services
Setup High Availability
© Copyright 2014 Pivotal. All rights reserved. 59
4 Layers of built-in High Availability
Application Instance
Platform Processes
Platform VMs
Availability Zones
© Copyright 2014 Pivotal. All rights reserved. 60
4 Layers of built-in High Availability
Application Instance
Platform Processes
Platform VMs
Availability Zones
© Copyright 2014 Pivotal. All rights reserved. 61
App Instance HA
Blobstore
Rou
ter
Cloud Controller
DEA
Messaging (NATS)
DEA DEA
Runtime
Health Manager
Actual State
Cloud Foundry
© Copyright 2014 Pivotal. All rights reserved. 62
4 Layers of built-in High Availability
Application Instance
Platform Processes
Platform VMs
Availability Zones
© Copyright 2014 Pivotal. All rights reserved.
63
Platform Processes HA
Blobstore
BOSH
Health Monitor
DB
Messaging
Health Manager
Target VM
Cloud Controller
BOSH Director
NATS
Agent
Agent
Agent
Process
Process
Process
Pivotal CFDEA
Agent Process
© Copyright 2014 Pivotal. All rights reserved. 64
Platform Processes HA
Target VMCloud Controller
Agent ProcessRestart
© Copyright 2014 Pivotal. All rights reserved. 65
4 Layers of built-in High Availability
Application Instance
Platform Processes
Platform VMs
Availability Zones
© Copyright 2014 Pivotal. All rights reserved.
66
Platform VMs HA
Blobstore
BOSH
Health Monitor
DB
Messaging
Health Manager BOSH Director
NATS Agent
Agent
Cloud ControllerAgent Process
Process
Process
Pivotal CFCloud Controller
Agent Process
Ressurector
Re-create VM
VM is missing…
© Copyright 2014 Pivotal. All rights reserved. 67
4 Layers of built-in High Availability
Application Instance
Platform Processes
Platform VMs
Availability Zones
© Copyright 2014 Pivotal. All rights reserved.
Availability Zone #2
68
Availability Zones
DEA
DEA
DEA
R
oute
r Blobstore
Cloud Controller
Health Manager
Messaging (NATS)
Push app
Availability Zone #1
DEA
DEA
© Copyright 2014 Pivotal. All rights reserved. 69
Operator Concerns
Monitor the platform
Handle upgrades and updates
Plan capacity
Manage users Quotas and services
Setup High Availability
© Copyright 2014 Pivotal. All rights reserved.© Copyright 2014 Pivotal. All rights reserved.
And on top of all that…… something else we’ve found in
enterprises
© Copyright 2014 Pivotal. All rights reserved.
Virtualized Infrastructure
Infrastructure-centric Operations model
Your Application Code
Dat
abas
e
Web
S
erve
r
Mes
sagi
ng
IaaS+ (+automation) IT Ops Team
App Team(Dev and Ops)
SOLUTION SPACE
© Copyright 2014 Pivotal. All rights reserved.
Application-centric Operation model
Virtualized Infrastructure
Your Application Code
Dat
abas
e
Web
S
erve
r
Mes
sagi
ng
IaaS+ (+automation)
IT Ops Team
App Team
Your Application Code
PAAS
Virtualized Infrastructure
PaaS Ops Team
App Team(Dev and Ops)
Emits application “dial tone”• Configuration• Runtime• Logs• Metrics• Health Management• Security
SOLUTION SPACE
© Copyright 2014 Pivotal. All rights reserved. 74
© Copyright 2014 Pivotal. All rights reserved.
THANK YOU!See you after the break!
82