Slide 1

Slide 1 text

Comic Relief Donations Introduction to Cloud Foundry (Tech, Trends, pros/cons) OTN Donation Platform Background OTN Donation Platform Technical (Insights / Q&A)

Slide 2

Slide 2 text

How was it delivered in the past? ● Monolithic Java/Oracle app ● Required ~50 people to deliver ● Manual/Chef deployed ● Had never delivered without an outage ● Complex vendor matrix ● Vendor/Provider lock-in

Slide 3

Slide 3 text

Annual feedback loop

Slide 4

Slide 4 text

New solution: Availability over consistency

Slide 5

Slide 5 text

12-Factor apps

Slide 6

Slide 6 text

Architecture

Slide 7

Slide 7 text

New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) Presentation Layer Service Layer Workers

Slide 8

Slide 8 text

New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers Presentation Layer Service Layer Workers LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Presentation Layer

Slide 9

Slide 9 text

New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers Presentation Layer Service Layer Workers LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Presentation Layer

Slide 10

Slide 10 text

New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers Presentation Layer Service Layer Workers LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Shared Services Logging Metrics Alerting + Postcodes Presentation Layer

Slide 11

Slide 11 text

LONDON Insight Layer New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers View API Insight Presentation Layer Service Layer Workers MGMT LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Shared Services Logging Metrics Alerting = + Postcodes Presentation Layer

Slide 12

Slide 12 text

LONDON Insight Layer New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers View API Insight Presentation Layer Service Layer Workers MGMT LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Shared Services Logging Metrics Alerting = + Postcodes Presentation Layer

Slide 13

Slide 13 text

LONDON Insight Layer New Solution Internet DNS US EAST COAST Cloud Foundry (BOSH/EC2) DUBLIN Cloud Foundry (BOSH/EC2) Service Layer Workers View API Insight Presentation Layer Service Layer Workers MGMT LONDON Cloud Foundry (BOSH/VMWare) Presentation Layer Service Layer Workers Shared Services Logging Metrics Alerting = + Postcodes Presentation Layer

Slide 14

Slide 14 text

Testing pipelines Application & Infrastructure code: Unit > Integration > Systest > Device > Security > Blue/Green >> Live!

Slide 15

Slide 15 text

Commodity infrastructure Build CF (80 VMs) Deploy 30 x Apps Load Test (100k users) Die! 40 minutes

Slide 16

Slide 16 text

Introduction to Cloud Foundry (CF)

Slide 17

Slide 17 text

CR to CF 1. Local Development 2. Cloud Orchestration 3. Application Lifecycle 4. Scaling 5. Portability 1. BOSH Lite/TMUX/Vagrant/Other 2. > cf login {cf provider 1} 3. > cf push {app} 4. > cf scale {app} -i 100 5. > cf login {cf provider 2}

Slide 18

Slide 18 text

Demo Deploying a PHP app to Bluemix > enter: cf login \ -a https://api.ng.bluemix.net \ -u [email protected] \ -p $CR_CF_BLUEMIX_PASSWORD \ -o [email protected] \ -s demo cd ~/Code/comicrelief-3rd-party/cf-ex-phpmyadmin cf create-service cleardb spark my-test-mysql-db cf push #view app # https://cr-demo-phpmyadmin.mybluemix.net

Slide 19

Slide 19 text

Demo Scaling a PHP app on Bluemix > enter: #scale up cf scale -i 10 phpmyadmin cf apps #scale down cf scale -i 1 phpmyadmin cf apps #delete cf delete -f phpmyadmin cf delete-service -f my-test-mysql-db

Slide 20

Slide 20 text

Demo Moving a PHP app between CFs > enter: cf login \ -a https://api.run.pivotal.io \ -u [email protected] \ -p gefafwsp \ -o ak1 \ -s demo cd ~/Code/comicrelief-3rd-party/cf-ex-phpmyadmin cf create-service cleardb spark my-test-mysql-db cf push #view app # https://cr-demo-phpmyadmin.cfapps.io cf delete -f phpmyadmin cf delete-service -f my-test-mysql-db

Slide 21

Slide 21 text

CR CF Architecture Vision CF Provider Production CR App Suite SCM Staging CR App Suite Test CR App Suite Development Dev A Dev B CI Dev A > Local [Cheaper/Better] CF Provider Production CR App Suite Staging CR App Suite Test CR App Suite Development Dev A Dev B

Slide 22

Slide 22 text

No content