architecture & operations

74
© Copyright 2014 Pivotal. All rights reserved. Pivotal Cloud Platform Deep Dive Part 2: Architecture and The Operator Experience Sani Chabi Yo syo @ pivotal.io 1 Keith Resar keith.resar@ctl. com @keithresar

Upload: pivotal

Post on 17-Feb-2017

612 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Architecture & Operations

© 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

Page 2: 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: Architecture & Operations

© 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

Page 4: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Plus…

And many more….

Page 5: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Operation agility as the secret sauce

Page 6: Architecture & Operations

© 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

Page 7: Architecture & Operations

© 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

Page 8: Architecture & Operations

© 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

Page 9: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 9

Pivotal CF deployment on CenturyLink Cloud

Page 10: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 10

Page 11: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 11

Page 12: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 12

Page 13: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 13

Page 14: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 14

Page 15: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 15

Page 16: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 16

Page 17: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 17

Page 18: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 18

Page 19: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 19

Page 20: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 20

Page 21: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 21

Page 22: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 22

Page 23: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Demo

Page 24: Architecture & Operations

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

What’s on Pivotal Cloud Foundry for an operator?

24

Page 25: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 25

Pivotal Cloud Foundry operations

Developer Operator

Page 26: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 26

Install runtime and container

Deploy to dev

Page 27: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 27

Install runtime and container

Install services (db, messaging, hadoop, …)

Deploy to dev

Page 28: Architecture & Operations

© 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

Page 29: Architecture & Operations

© 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, …)

Page 30: Architecture & Operations

© 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, …)

Page 31: Architecture & Operations

© 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, …)

Page 32: Architecture & Operations

© 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, …)

Page 33: Architecture & Operations

© 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

Page 34: Architecture & Operations

© 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

Page 35: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Deploy to dev

The Pivotal CF way

Page 36: 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 37: Architecture & Operations

© 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

Page 38: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 38

Orgs, Spaces, Users and Quotas

Page 39: Architecture & Operations

© 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

Page 40: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

What about my legacy services?

Page 41: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

SOLUTION SPACE

Page 42: Architecture & Operations

© 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

Page 43: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 43

Demo

Page 44: Architecture & Operations

© 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

Page 45: Architecture & Operations

© 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

Page 46: Architecture & Operations

© 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

Page 47: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

How about and CF?

47

Page 48: Architecture & Operations

© 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

Page 49: Architecture & Operations

© 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

Page 50: Architecture & Operations

© 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

Page 51: Architecture & Operations

© 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

Page 52: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

Demo: How long does it take you to deploy a patch in production?

Demo

Page 53: Architecture & Operations

© 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

Page 54: 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: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 55

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 56: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 56

Platform Monitoring

Collector

JMX Provider

JMX Monitoring Tool

Page 57: Architecture & Operations

© 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

Page 58: Architecture & Operations

© 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

Page 59: 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: 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: Architecture & Operations

© 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

Page 62: 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: Architecture & Operations

© 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

Page 64: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 64

Platform Processes HA

Target VMCloud Controller

Agent ProcessRestart

Page 65: 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: 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 ControllerAgent Process

Process

Process

Pivotal CFCloud Controller

Agent Process

Ressurector

Re-create VM

VM is missing…

Page 67: 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: Architecture & Operations

© 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

Page 69: Architecture & Operations

© 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

Page 70: Architecture & Operations

© 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

Page 71: Architecture & Operations

© 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

Page 72: Architecture & Operations

© 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

Page 73: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved. 74

Page 74: Architecture & Operations

© Copyright 2014 Pivotal. All rights reserved.

THANK YOU!See you after the break!

82