part 2: architecture and the operator experience (pivotal cloud platform roadshow)

55
© Copyright 2014 Pivotal. All rights reserved. Pivotal Cloud Platform Deep Dive Part 2: Architecture and The Operator Experience Pivotal CF Team 2

Upload: pivotal

Post on 15-Jan-2015

1.233 views

Category:

Software


8 download

DESCRIPTION

The primary goals of this session are to: Do a deep dive into the CF architecture via animated slides illustrating push, stage, deploy, scale, and health management. Also do a brief dive into BOSH, including why BOSH, what it is, and animations of how it works. It’s not an operations focused workshop, so we keep the treatment light. Discuss the value adds to CF BOSH OSS that Pivotal brings through the Pivotal Ops Manager product and our associated ecosystem of data and mobile services. Quickly prove that I can push an app to a Pivotal CF environment running on vCHS in the same exact way I can push an app to PWS. Pivotal Cloud Platform Roadshow is coming to a city near you! Join Pivotal technologists and learn how to build and deploy great software on a modern cloud platform. Find your city and register now http://bit.ly/1poA6PG

TRANSCRIPT

Page 1: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

Pivotal Cloud Platform Deep DivePart 2: Architecture and The Operator Experience

Pivotal CF Team

2

Page 2: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 3

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

Page 3: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 4

Rou

ter

Cloud Controller Service Broker Node(s)

DEA DEA

DEA DEA

Blobstore DB

Runtime

1. Upload bits/metadata

2. Create/bind services

3. Stage app

4. Deploy app

push app+ app MD

SC

+ =

Pushing an application

Page 4: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 5

Rou

ter

Cloud Controller

DEA

Blobstore DB

Runtime

Detect Compile UploadNo

System Buildpacks

+ =

Yes

Application Staging

Runtime

Page 5: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 6

Blobstore

R

oute

r Cloud Controller

DEA

Messaging (NATS)

DEA DEA

Runtime

Access App

Application containers and scaling

Page 6: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 7

DB

Rou

ter

Service credentials

reserve resources

obtain connection data

CLI Cloud Controller

Service Broker

Data Service

Runtime

create service (HTTP)

bind service (HTTP)

create service (HTTP)

bind service (HTTP)

Service create and bind

Page 7: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.© Copyright 2014 Pivotal. All rights reserved.

What’s on Pivotal CF for an operator?

8

Page 8: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 9

Pivotal CF operations

Developer Operator

Page 9: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 10

Install runtime and container

Deploy to dev

Page 10: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 11

Install runtime and container

Install services (db, messaging, hadoop, …)

Deploy to dev

Page 11: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 12

Install runtime and container

Install services (db, messaging, hadoop, …)

Setup load-balancing, SSL termination and dynamic routing

Deploy to dev

Page 12: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 13

Install runtime and container

Setup load-balancing, SSL termination and dynamic routing

Setup / config High Availability

Deploy to dev

Install services (db, messaging, hadoop, …)

Page 13: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 14

Install runtime and container

Setup load-balancing, SSL termination and dynamic routing

Setup / config High Availability

Setup APM

Deploy to dev

Install services (db, messaging, hadoop, …)

Page 14: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 15

Install runtime and container

Setup load-balancing, SSL termination and dynamic routing

Setup / config High Availability

Setup APM

Setup log streaming

Deploy to dev

Install services (db, messaging, hadoop, …)

Page 15: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 16

Install runtime and container

Setup load-balancing, SSL termination and dynamic routing

Setup / config High Availability

Setup APM

Setup log streaming

Deploy to dev

App Deployed

Install services (db, messaging, hadoop, …)

Page 16: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 17

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

Page 17: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 18

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

Page 18: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

Deploy to dev

The Pivotal CF way

Page 19: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

Deploy to dev

> cf pushCloud

ControllerHealth

Manager

NATS (message bus)

RouterApp Deployed

The Pivotal CF way

Page 20: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 21

The operator in the PaaS era

Developer Operator

Page 21: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 22

The operator in the PaaS era

Page 22: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 23

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 23: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 24

IaaS

Pivotal CF

Install the platform

Setup High Availability

Handle live upgrades and updates

Scale and plan capacity

Install and manage servicesTarget multiple

clouds

Page 24: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 25

IaaS

BOSH Director BOSH Agent

Mobile Services for Pivotal CF

ElasticSearch for Pivotal CF

CloudBees Jenkins Enterprise

Cassandra for Pivotal CF

Page 25: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 26

IaaS

BOSH Director BOSH Agent

Mobile Services for Pivotal CF

ElasticSearch for Pivotal CF

CloudBees Jenkins Enterprise

Cassandra for Pivotal CF

Click to install

No downtime updates

Explore install logs

Click to scale the platform

Built-in High Availability

Built-in Platform Monitoring

Integrated services

Page 26: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

Demo

Page 27: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

BOSH

Page 28: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 29

Provision services, not machines

Enables continuous delivery

Cloud-agnostic view of Platform Ops

Holistic Toolchain for “rule them all"

Eliminate bespoke automation on top of config management

Why BOSH

Page 29: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 30

Ops Manager + BOSH

Blobstore

BOSH

Health Monitor

DBDeploy my Services

Worker VMs

Messaging

Health Manager

Cloud Controller

Target VM

BOSH Director

NATS

IaaS

Page 30: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 31

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 31: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 32

Orgs, Spaces, Users and Quotas

Page 32: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 33

Organizations

Logical division within a Pivotal CF install / Foundation.

Each organization has its own users and assigned quota

User permissions / roles are specified per space within an organization

Sub-divided into Spaces

Page 33: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 34

Quotas and Plans

Different quota limits (e.g. “small”, “enterprise”, “default”, “runaway”) can be assigned per Organization

Quota defines !• Total Memory • Total # of Services • Total # of Routes

Page 34: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 35

Spaces

Logical sub-division within an organization

Services and Applications are created / specified per Space

Users authorized at an organization level can have different roles per space

Same Service can have different meanings per space

Page 35: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 36

Page 36: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 37

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 37: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 38

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?

Page 38: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 39

Platform Monitoring

Pivotal Ops Metrics provides a single JMX interface to access metrics for each Pivotal CF component

• DEAs

• Cloud Controllers

• Routers

• Health Managers

• NATS, UAA, Login Server, …

Page 39: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 40

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 40: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 41

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 41: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 42

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 42: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 43

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 43: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 44

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 44: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 45

App Instance HA

Blobstore

Rou

ter

Cloud Controller

DEA

Messaging (NATS)

DEA DEA

Runtime

Health ManagerActual State

Cloud Foundry

Page 45: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 46

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 46: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

47

Platform Processes HA

Blobstore

BOSH

Health Monitor

DB

Messaging

Health Manager

Target Cloud Controller

BOSH Director

NATS

Agent

Agent

Agent

Process

Process

Process

Pivotal CFDEA

Agent Process

Page 47: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 48

Platform Processes HA

Target Cloud Controller

Agent ProcessRestart

Page 48: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 49

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 49: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

50

Platform VMs HA

Blobstore

BOSH

Health Monitor

DB

Messaging

Health Manager BOSH Director

NATS Agent

Agent

Cloud Controller

Agent Process

Process

Process

Pivotal CFCloud Controller

Agent Process

Ressurector

Re-create VM

VM is missing…

Page 50: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 51

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 51: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved.

Availability Zone #2

52

Availability Zones

DEA

DEA

DEA

Rou

ter Blobstore

Cloud Controller

Health Manager

Messaging (NATS)

Push app

Availability Zone #1

DEA

DEA

Page 52: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 53

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 53: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 54

Pivotal CF: Enterprise Grade SW Delivery Simple & Comprehensive •  End to end platform to iterate quickly and build

highly scalable cloud apps •  IT Ops automation with no scripts, no templates,

no config headaches •  Easy to use management dashboard

Extensible •  Independent of the IaaS provider, the runtime

languages supported & the brokered services •  Simple APIs ensure easy extension and

customization

Governed & Secure •  Individual and team-based roles and permissions •  Easy integration w/ 3rd party tools and agents

Highly Available •  Built in health monitoring and management of

applications and the platform •  Zero downtime deploys/updates of the platform

and applications

Scalable & Efficient •  Elastic scale of PaaS capacity and applications

through simple interfaces or scripting •  Higher application instance density on the

same IaaS footprint through advanced containerization

Page 54: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

© Copyright 2014 Pivotal. All rights reserved. 55

The Platform for a New Era of Software Innovation Pivotal CF:

•  Instant Dynamic Routing • Streaming Logging Agg •  ID/team/RBAC/Policy • APM, Auto-scaling • Ready integration • Four layers of built-in Availability

• Auto-detect runtimes, frameworks

•  “Push and it works” model

• CF Push [.WAR] • CF Push [Docker] • CF Push [.ASP]

• Elastic Pivotal HD • HAWQ Analytics • Mobile Push • Mobile Sync • Mobile API

• MySQL HA • Redis • Rabbit MQ • Elastic Search • Cassandra • Jenkins (Partner)

….and more

DEPLOY, OPERATE, UPDATE, SCALE ON ANY INFRASTRUCTURE

INTEGRATED OPERATOR FUNCTIONS READY MIDDLEWARE SERVICES AUTO DEPLOY

AND SCALE

Page 55: Part 2: Architecture and the Operator Experience (Pivotal Cloud Platform Roadshow)

A NEW PLATFORM FOR A NEW ERA