Speeding up Development with Cloud Foundry

Post on 06-May-2015

2.315 views 2 download

Tags:

description

This presentation will introduce you to Cloud Foundry, an open source PaaS solution that can run on private clouds. It includes a brief overview of the history, architecture, and benefits of Cloud Foundry, as well as some practical advice on deployment, workflows, etc.

Transcript of Speeding up Development with Cloud Foundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

.

......Speeding up development with CloudFoundry

Alexander Borovsky

Altoros

alexander.borovsky@altoros.com

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Overview

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

History

Bare servers

Shared hosting

2006 Hardware virtualization in cheap hardware

2008 Heroku

2011 CloudFoundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

History

Bare servers

Shared hosting

2006 Hardware virtualization in cheap hardware

2008 Heroku

2011 CloudFoundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

History

Bare servers

Shared hosting

2006 Hardware virtualization in cheap hardware

2008 Heroku

2011 CloudFoundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

History

Bare servers

Shared hosting

2006 Hardware virtualization in cheap hardware

2008 Heroku

2011 CloudFoundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

History

Bare servers

Shared hosting

2006 Hardware virtualization in cheap hardware

2008 Heroku

2011 CloudFoundry

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Publish application

.Ruby........$ cf push

.Java........$ cf push

.Other type........$ cf push

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Publish application

.Ruby........$ cf push

.Java........$ cf push

.Other type........$ cf push

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Publish application

.Ruby........$ cf push

.Java........$ cf push

.Other type........$ cf push

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Speed ups deployment

Creating new environment is easy

No deployment scripts required

All developers can have they own production-like environment

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Reduces cost

Easier infrastructure creation

Automated cluster monitoring

Less people required to support infrastructure

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Reduces cost

Easier infrastructure creation

Automated cluster monitoring

Less people required to support infrastructure

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Reduces cost

Easier infrastructure creation

Automated cluster monitoring

Less people required to support infrastructure

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Deployment

cf push

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Using buildpacks

.Definition........Buildpack prepares application to run in CloudFoundry

cf push --buildpack <git repo>

.Example..

......

cf push --buildpack \

https://github.com/heroku/heroku-buildpack-php

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Using buildpacks

.Definition........Buildpack prepares application to run in CloudFoundry

cf push --buildpack <git repo>

.Example..

......

cf push --buildpack \

https://github.com/heroku/heroku-buildpack-php

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Using buildpacks

.Definition........Buildpack prepares application to run in CloudFoundry

cf push --buildpack <git repo>

.Example..

......

cf push --buildpack \

https://github.com/heroku/heroku-buildpack-php

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Using subfolder for deploy

cf push --path <path>

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Application Scaling

cf scale

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Service

.Definition........Service is persistence level in CloudFoundry

.Service creation........cf create-service

.Service binding........cf bind-service

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Service

.Definition........Service is persistence level in CloudFoundry

.Service creation........cf create-service

.Service binding........cf bind-service

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Service

.Definition........Service is persistence level in CloudFoundry

.Service creation........cf create-service

.Service binding........cf bind-service

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Development with PaaS Workflow

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for Developer

...1 Each developer have production-like environment

...2 Require small changes in application architecture

.Details..

......

No local storage

Share-nothing nodes

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for Developer

...1 Each developer have production-like environment

...2 Require small changes in application architecture

.Details..

......

No local storage

Share-nothing nodes

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for Developer

...1 Each developer have production-like environment

...2 Require small changes in application architecture

.Details..

......

No local storage

Share-nothing nodes

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for DevOps

...1 Easy creation of environments

...2 Easy scaling

...3 Easy environment duplication

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for DevOps

...1 Easy creation of environments

...2 Easy scaling

...3 Easy environment duplication

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for DevOps

...1 Easy creation of environments

...2 Easy scaling

...3 Easy environment duplication

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for System Administrators

...1 Control used resources

...2 Faster notification and recover after disasters

...3 Better hardware usage

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for System Administrators

...1 Control used resources

...2 Faster notification and recover after disasters

...3 Better hardware usage

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Changes for System Administrators

...1 Control used resources

...2 Faster notification and recover after disasters

...3 Better hardware usage

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Cloud Foundry Architecture

...1 History

...2 Why CloudFoundry matters?The same tool to do all thingsSpeed ups deploymentReduces cost

...3 How to work with it?DeploymentApplication ScalingServices

...4 Development with PaaS WorkflowFor DevelopersFor DevOpsFor System Administrators

...5 Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Cloud Foundry Architecture

..........

.....

.....................................................................

.....

......

.....

.....

.

History. . .Why CloudFoundry matters?

. . . . .How to work with it?

. . .Development with PaaS Workflow Cloud Foundry Architecture

Questions?