cloud foundry with spring - ?· agenda • cloud foundry introduction • a developers perspective...

Download Cloud Foundry With Spring - ?· Agenda • Cloud Foundry Introduction • A Developers Perspective •…

Post on 19-Apr-2019

212 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Ramnivas LaddadScott AndrewsTal Salmona

VMware Cloud Foundry Team

Cloud Foundry With SpringPart One: Applications

Agenda

Cloud Foundry Introduction A Developers Perspective An Operations Perspective Getting Insight into Applications Future Direction

2

SaaSSoftware as a Service

PaaSPlatform as a Service

IaaSInfrastructure as a

Service

Three layers of Cloud Computing

3

Cloud Foundry Big Picture

4

Clou

d Pr

ovid

er In

terfa

ceApplication Service Interface

Private Clouds

PublicClouds

MicroCloud Foundry

Data Services

Other Services

Msg Services

.js

Cloud Foundry Open PaaS

Multiple languages and frameworks Multiple deployment options A variety of services

5

Open Source

Extend it to meet your needs

Inside Cloud Foundry

6

Router

vSphere 5

Health Manager

Execution environment Services

user apps Cloud Controller user apps

vmc client STS plugin browser (user app access)

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Saying Hello

7

Agenda

Cloud Foundry Introduction A Developers Perspective An Operations Perspective Getting Insight into Applications Future Direction

8

Real life developing a web product

9

Broad support for application frameworks

JVM Spring, Grails, Roo, Lift, plain Java

Ruby Rails, Sinatra

Node.js Community contributions

Erlang, Python, PHP

10

JVM Frameworks

Unit of deployment: Java WARs Can run any standard WAR file Servlet 2.5

dont assume a particular container Spring, Grails, Lift framework

Auto-reconfiguration goodies

11

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Building a Spring Application

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Building a Grails Application

Inside Staged Applications

Stager packages applications into executable droplets provides a runtime container can rewrite configuration files can add libraries

14

Inside Staged Applications (continued)

For Spring/Grails applications provides a servlet container deploys the app into the container configures the container to listen on the correct port adds auto-reconfiguration lib to the class path rewrites web.xml

registers auto-reconfiguration BeanFactoryPostProcessor registers CloudApplicationContextInitializer

adds JDBC drivers to class path MySQL or PostgreSQL depending on bound services

15

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Inspecting a staged application

Hey you! Leave my app alone!

No Problem Plain Java framework

bare minimum staging no manipulation of configuration files no additions to the class path just your application

17

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Staging, or lack thereof, for Plain Java Application

Agenda

Cloud Foundry Introduction A Developers Perspective An Operations Perspective Getting Insight into Applications Future Direction

19

Real life developing a web product

20

Growing with Demand

Scale up in seconds vmc instances myapp +2

Scale down in seconds vmc instances myapp -2

Monitor your application instances per instance: memory, CPU, disk, uptime vmc stats myapp

21

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Application Scaling

22

Surviving Disaster

Applications crash impossible to avoid it will happen, sooner or later

Optimize for mean time to recovery mean time between failures is not as important

23

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Recovering from Failure

24

Agenda

Cloud Foundry Introduction A Developers Perspective An Operations Perspective Getting Insight into Applications Future Direction

25

Spring Insight

A tool for developers to learn about their apps at dev. time

A tool for Ops to learn about apps at production

See response times, errors, execution traces

Understands Spring

26

Announcing...

Invitation to join the private beta of Spring Insight for Cloud Foundry.

For developers of Spring applications.

27

Spring Insight for Cloud Foundry

Same experience as desktop version

With some Cloud Foundry specific functionality

Easy to get started

28

Why Insight for Cloud Foundry

Monitor the quality of your application

Manage your users experience

29

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Demo

Spring Insight for Cloud Foundry

30

What's next for Insight

Extend language and framework support Support for more services as they become available An option to run the dashboard as a service Support for Micro Cloud Foundry Extended management capabilities

31

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Go to http://insight.cloudfoundry.com(Use your private token)

32

http://insight.cloudfoundry.com/http://insight.cloudfoundry.com/

Agenda

Cloud Foundry Introduction A Developers Perspective An Operations Perspective Getting Insight into Applications Future Direction

33

Wider Application support

Non-web applications Background tasks Batch jobs, scheduling

Web applications Servlet 3.0 WebSockets Session management Embedded web servers

34

Application Staging Plugins

Hook into the Application Staging lifecycle Provide advanced configuration and features

Examples: Spring Insight AspectJ pre-weaving Add-on ecosystem

35

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

To Be Continued...

Cloud Foundry with SpringPart Two: Services

Here after lunch

36

http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334http://springone2gx.com/conference/chicago/2011/10/session?id=24334

2011 SpringOne 2GX 2011. All rights reserved. Do not distribute without permission.

Q&A

37