cloud foundry summit 2015: running cloud foundry at comcast

11

Click here to load reader

Upload: pivotal

Post on 25-Jul-2015

234 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Cloud Foundry at Comcast

May 11, 2015

Page 2: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Tim Leong, Cloud Architecture

Sergey Matochkin, App Platform Architecture

Sam Guerrero, Cloud Engineering

Neville George, Cloud Engineering

Cloud Foundry at Comcast2

Comcast Cloud Services

Page 3: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Cloud Foundry Custom URLs: Challenges

Cloud Foundry at Comcast3

HTTP Host Header

• Changing Host Header for proper CF Routing

• Enable GSLB Support

Multiple SSL Certificates

• How to support SSL for multiple domains?

Page 4: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

GSLB, Custom URLs and SSL

• HAProxy Config controlled by Puppet/Hiera

• Custom Host Header replacement config through Puppet

• Also works for certificate injection, with SNI

Cloud Foundry at Comcast4

app.example.com

LB

app.west.cf.example.com

LB

app.east.cf.example.com

GSLB

Puppet

Hiera

Update cfg

HH key/value

Page 5: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Cloud Foundry Custom Services: Challenges

Need for Custom Services

•Logger

•Outbound Proxy

•HAProxy with custom URL mapping

Cloud Foundry at Comcast5

Scale and Extend

•Supports organic growth and on-demand scalability

•Add new Services without major Dev efforts

•Support service lifecycle

Page 6: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Cloud Foundry meets Docker and OpenStack at the Market Place

•Docker can run anything – ideal runtime environment for services

•Run Docker containers on OpenStack VMs

•OpenStack is build to scale

•Monitor utilization and automatically add VMs to maintain capacity

Cloud Foundry at Comcast6

Page 7: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Two layers of Service Broker Implementation

Cloud Foundry at Comcast7

Cloud Foundry

Controller

Service Broker API

Logger

Docker Pool

Controller

Logger

HA

Pro

xy

Squid

Pro

xy

OpenStack VMs

DB

VMCapacity Manager

Container Manager

Page 8: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Docker Pool Controller Request

Request

PUT /b8ead779-08ce-4659-84dd-30d61838e10e

{

"image": "comcast-logger",

"mem": 1024,

"ports":[

80, 5000

]

}

Response

{

"host": "b8ead779-08ce-4659-84dd-30d61838e10e.s.example.com",

"ports": {

"80": 49202,

"5000": 49203

}

}

Cloud Foundry at Comcast8

• Go find a server that can accommodate a new container

• Start the container using “comcast-logger” image

• Expose ports 80 and 5000

• Ensure that the container will have 1GB RAM to run

• Here is your service FQDN

• And port mappings

Page 9: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Shift in Thinking

Cloud Foundry at Comcast9

• Self Service operating model (great for business but brings challenges to Engineering)

• Logistics (Asset management, CMDB to CF App associations, showback / chargeback)

• Expanded customer collaboration (App Specific / Network / DNS / Load Balancer)

• Increased scope of responsibility (cf versions, buildpacks, backups)

• “Run your own business” mentality (T-shaped)

Page 10: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast

Data Insight - “Knowing matters”

Admin UI Tool - Visibility

• GUI for state of the environment

• Aids in certain operational aspects

• Utilization metrics

Cloud Foundry at Comcast10

Nagios - Proactive monitoring

• Key Performance Indicators

• Customer quotas

• Problem correlation

Page 11: Cloud Foundry Summit 2015: Running Cloud Foundry at Comcast