44
Helion Development Platform 1.2 Why is Cloud Foundry so Powerful ? Etienne COINTET HP Presales @bemyapp @ecointet

HP Helion Webinar #2

  • Upload
    bemyapp

  • View
    454

  • Download
    0

Embed Size (px)

Citation preview

Helion Development Platform 1.2Why is Cloud Foundry so Powerful ?

Etienne COINTET

HP Presales

@bemyapp@ecointet

Interrupt !

Poll time

A Never B On YouTubeC Yes, it was greatD Could be on stage with your keyboard

Have you already seen Cloud Foundry in action?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

It’s all about application

$18 MilliardTransport

$5 MilliardEntertainment

$35 MilliardPhotography

$16 MilliardCommunication

$10 MilliardTravel & Hospitality

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Deploys code every

11 seconds.New Release deployed in

6 months

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

The impact of batch sizeR

ISK

TIME

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Interrupt !

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Poll time

A Never B In a movieC I guessD I met myself, I’m a developer.

Have you already met a developer?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

SERVER

DATABASE

NETWORK

MIDDLEWARE SE

CUR

ITY

CODE

(a lot)

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

SERVER DATABASENETWORK MIDDLEWARE

CODE

(a lot)

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

1 VM WAIT

INSTALL OS MIDDLEWARE

DATABASE CONFIG

NETWORK COPY CODE

TESTS

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Interrupt !

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Poll time

A 3 secondsB 3 hoursC 3 daysD 3 monthsE 3 years

In your company, How long it takes to deploy a Platform?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

target <cloud>

push <my app>

bind <services>

scale <my app> --instances +10

Where am I?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

App

Platforme

Infrastructure

Gmail, Salesforce, Flickr, Google Docs, HP Snapfish…

Google AppEngine,Heroku, Cloud Foundry, Helion

Development Platform, Apprenda...

Amazon EC2, Google CE,OpenStack, vCloud,

Joyent, HP Helion Openstack,…

Old Fashion VS New Style

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

elastic pool

databaseapp instance

app instance

Network load balancer

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

[mysqld]user = foobarport = 3306basedir = /usrbind-address = 172.58.77.101key_buffer = 16Mthread_stack = 128Kthread_cache_size = 8

[nginx]http.include mime.types;default_type: application/octet;log_format: main ‘$remote_addr[]…’

[tomcat]<Connector redirectPort=“8443” emptySessionPath…/><bean id=“sessionFactory” class=“org.springframework…/>

[frontend]dependencies:- mysqlclient- rubyfiles:- core/app/fe/**/*- core/common/**/*

[blah]- blah blah blah

elastic pool

databaseapp instance

app instance

Network load balancer

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

target mycloud

push myapp–instances 2–mem 64

create-servicemysql –name mydb

elastic pool

databaseapp instance

app instance

Network load balancer

Cloud Foundry : principles

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Platform

ConsumersNetwork

DNS / LB/ …

Services

Service(s)

WEB

Cloud-Native App

…Instance(s)

BU

ILD

PA

CK

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Cloud Foundry : Architecture

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Infrastructure WEB

Consumers

Developers

CloudController App App

Execution Agents (DEA) Pool

HealthManager

Messaging

Routers

Services

A Cloud-Native Application

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Define dependancies(frameworks, libs)

Configuration file

Ask services needed

Build version

(release, debug…)

Release XX.YY

Port listening

Movable

Logs

Unique codeMy App

Services

N instances

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

I have no information about mydatabase

I know everything about mydatabase

<?php

$link = mysql_connect(“192.168.1.120", “etienne042", “MyPassword");

echo ‘successfully connected!';

?>

<?php

$services = getenv("VCAP_SERVICES");

$services_ json = json_decode($services,true);

$db_config = $services_ json["mysql"][0]["credentials"];

mysql_connect($db_config["hostname"], $db_config["user"], $db_config["password"]);

?>

How to host Cloud Foundry?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Compute Storage Network

Identity Security

Web

Inte

rfac

e

Database

Private cloud Public cloudManaged virtual private cloud

Managed private cloud

Some people say, Openstack!

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Compute Storage Network

Identity Security

OP

EN

STA

CK

Database

Private cloud Public cloudManaged virtual private cloud

Managed private cloud

CloudController App App

Execution Agents (DEA) Pool HealthManager

Messaging

Routers

Services

App App

CLO

UD

FO

UN

DR

YCO

DE

APPLICATION

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Private cloud Public cloudManaged virtual private cloud

Managed private cloud

HP Helion OpenStack

HP Helion Development Platform

Openstack

Dev Platform

OP

EN

STA

CK

CLO

UD

FO

UN

DR

YCO

DE

Developcloud-native applications

Deployacross clouds

Deliverhighly available and scalable

apps

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

IaaS

Minutes to code

Use console to create/modify host cluster

Environment includesapplications, runtimes, services

and infrastructure resources

Developer pushes code to cluster via Eclipse/Visual

Studio or CLI

3 layers obviously linked

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Etienne Cointet, 2015,

« This is real PaaS.I’m a developer, I code, nothing else. »

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

If I like ASP.NET, C#, Visual Studio, …

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Interrupt !

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Poll time

A Never B SometimesC OftenD Yes I’m.

Are you a Microsoft Developer?

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

.NET Support

The OpenStack Word Mark is either a registered trademark/service mark or trademark/service mark of the OpenStack Foundation, in the United States and other countries and is used with the OpenStack Foundation’s permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. Cloud Foundry is a trademark and/or registered trademark of Pivotal Software, Inc. in the United States and/or other countries.

Windows DEA

Router

CloudController

Linux DEA

HealthManager

Services Services

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Overview of Cloud Foundry Windows Support

System Components

• Windows Server 2012 R2• Process and Resource Isolation• Build pack for IIS8/.NET

• Supports CLR v2 to 4.5.2• Applications: IIS, ASP.NET, WCF, Web API • Frameworks: MVC2, 3, 4, 5, …, SignalR, …

Windows DEA (CF v2)

• GO• Supported Microsoft SQL Server versions & flavors

• Microsoft SQL Server 2012 SP1 Express• Microsoft SQL Server 2014 Express

• Windows Server 2012 R2 Core or better• By default runs on Windows MSSQL node, but can run

anywhere

Cloud Foundry Microsoft SQL Server Service Broker

Developer Tools

• --stack win2012r2

Standard Helion CLI

• Programmatic access to CF• Full object v2 model coverage

• Supporting: UAA, AOK, Loggregator and Logyard

Cloud Foundry .NET SDK

• Deploy (publish), Start/Stop/Restart, Delete apps from MSBuild

Cloud Foundry MS Build Tasks

• Explore Cloud Foundry cluster and manipulate from within Visual Studio

• Deploy application from within Visual Studio

Cloud Foundry Explorer for Visual Studio

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Interrupt !

© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.

Poll time

A YesB YesC Yes

Did you enjoy this Webinar?