Top Banner
© Copyright 2014 Pivotal. All rights reserved. Pivotal Cloud Platform Deep Dive Part 2: Architecture and The Operator Experience Andrew Ripka [email protected] @rippmn 1 Keith Resar [email protected] @keithresar
76

Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

Aug 21, 2015

Download

Technology

Pivotal
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

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

Andrew Ripka [email protected] @rippmn

1

Keith Resar [email protected] @keithresar

Page 2: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© 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

Page 3: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 3

This…. (not cool).

Page 4: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 4

And this…(also not cool)

Page 5: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 5

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 6: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 6

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 7: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 7

Rou

ter

Cloud Controller

DEA

Blobstore DB

Runtime

Detect Compile UploadNo

System Buildpacks

+ =

Yes

`

Runtime

Page 8: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 8

Blobstore

R

oute

r Cloud Controller

DEA

Messaging (NATS)

DEA DEA

Runtime

Access App

Application containers and scaling

Page 9: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 9

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 10: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 10

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: A web application that you install through the Ops Manager and use to deploy and manage your applications deployed on Pivotal Cloud Foundry PaaS

Page 11: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Demo

Page 12: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 12

Pivotal CF deployment on CenturyLink Cloud

Page 13: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 13

Page 14: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 14

Page 15: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 15

Page 16: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 16

Page 17: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 17

Page 18: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 18

Page 19: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 19

Page 20: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 20

Page 21: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 21

Page 22: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 22

Page 23: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 23

Page 24: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 24

Page 25: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 25

Page 26: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

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

What’s on Pivotal Cloud Foundry for an operator?

26

Page 27: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 27

Pivotal Cloud Foundry operations

Developer Operator

Page 28: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 28

Install runtime and container

Deploy to dev

Page 29: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 29

Install runtime and container

Install services (db, messaging, hadoop, …)

Deploy to dev

Page 30: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 30

Install runtime and container

Install services (db, messaging, hadoop, …)

Setup load-balancing, SSL termination and dynamic routing

Deploy to dev

Page 31: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 31

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 32: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 32

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 33: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 33

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 34: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 34

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 35: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 35

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

Page 36: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 36

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 37: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Deploy to dev

The Pivotal CF way

Page 38: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Deploy to dev

> cf pushCloud

ControllerHealth

Manager

NATS (message bus)

RouterApp Deployed

The Pivotal CF way

Page 39: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 39

The operator in the PaaS era

Developer Operator

Page 40: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 40

The operator in the PaaS era

Page 41: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 41

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 42: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 42

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 43: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 43

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 44: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

BOSH

Page 45: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 45

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 46: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 46

Ops Manager + BOSH

Blobstore

BOSH

Health Monitor

DBDeploy my Services

Worker VMs

Messaging

Health Manager

Cloud Controller

BOSH Director

NATS

IaaS

Page 47: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 47

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 48: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 48

Orgs, Spaces, Users and Quotas

Page 49: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 49

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 50: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 50

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 51: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 51

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 52: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 52

Page 53: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© 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 54: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© 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?

Page 55: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 55

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 56: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 56

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 57: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 57

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 58: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 58

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 59: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 59

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 60: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 60

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 61: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 61

App Instance HA

Blobstore

Rou

ter

Cloud Controller

DEA

Messaging (NATS)

DEA DEA

Runtime

Health ManagerActual State

Cloud Foundry

Page 62: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 62

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 63: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

63

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 64: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 64

Platform Processes HA

Target Cloud Controller

Agent ProcessRestart

Page 65: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 65

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 66: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

66

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 67: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 67

4 Layers of built-in High Availability

Application Instance

Platform Processes

Platform VMs

Availability Zones

Page 68: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Availability Zone #2

68

Availability Zones

DEA

DEA

DEA

Rou

ter Blobstore

Cloud Controller

Health Manager

Messaging (NATS)

Push app

Availability Zone #1

DEA

DEA

Page 69: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 69

Operator Concerns

Monitor the platform

Handle upgrades and updates

Plan capacity

Manage users and quotas

Install the platform

Setup High Availability

Page 70: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 70

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 71: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 71

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 72: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Bonus Demo Time - Diego

72

Page 73: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 73

• Support for multiple backend implementations without warden rewrite

• Remove dependency between components

• Might as well be in Go

Diego?

DEA Pool

Cloud Controller

Health Manager

Page 74: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

So What?

74

Page 75: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 75

One Polyglot Cluster

Page 76: Pivotal CenturyLink Cloud Platform Seminar Presentations: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

THANK YOU!See you after the break!

76