Top Banner
Smalltalk in the Cloud ESUG 2013, Annecy, France Tuesday, 10 September, 11:30 am to noon James Foster, Director of Professional Services
20

Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Jun 04, 2018

Download

Documents

vungoc
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Smalltalk in the Cloud

ESUG 2013, Annecy, France Tuesday, 10 September, 11:30 am to noon

James Foster, Director of Professional Services

Page 2: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

3

Abstract

• In this talk we describe a Platform as a Service (PaaS) for

Smalltalk and show how a Smalltalk application can be

deployed easily to Amazon's EC2 using a provided AMI with

Cloud Foundry built-in.

• We look forward to getting feedback on how this can be made

more useful to the community.

Page 3: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Agenda

• Overview of Cloud Foundry

• Cloud Foundry on Amazon EC2

• Pharo in the Cloud

• GemStone/S in the Cloud

4

Page 4: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Hosting Options

What is provided by vendor:

Utilities: Network, power, A/C

Hardware: CPU, RAM, disk

Stack: operating system, web server, runtime, framework

Application: this is the programmer's concern

Type Utilities Hardware Stack Applications

Self-hosting

Data center

IaaS

PaaS

SaaS

Page 5: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Accessing Applications

6

Web

App

App Instance

Request Web Interface Load

Balancing

and

Routing

Response

“cf push MyApp”

Page 6: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Scaling Applications

7

Request Web Interface Load

Balancing

and

Routing

Response

Web

App

App Instances

Web

App

Web

App

“cf instances MyApp 3”

Page 7: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Sample Server Architecture

8

Page 8: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Support for Ruby

• Interpreter works with text files

• Application code "includes" external libraries

• Frameworks (Rails, Sinatra) can be pre-loaded on

server

9

Page 9: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Support for Java

• Runtime VM works with "jar" files

• Application code "includes" external libraries

• Frameworks (Spring, Lift, Grails) can be pre-

loaded on server

10

Page 10: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

How is Smalltalk Different?

• Monolithic image

– All application and framework together

– Not in text files

• Could push text files and build image

• Or just push the whole image!

11

Page 11: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Cloud Foundry

• www.cloudfoundry.com

– commercial hosting by Pivotal (VMware, EMC, GE)

• www.cloudfoundry.org

– Open source PaaS framework

12

Page 12: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Amazon Web Services (AWS)

13

Page 14: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Regions and Availability Zones

15

Page 15: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

IP Addresses

• "Elastic IP"

– Static IP that can be moved between VMs

• "Route 53"

– Domain Name Server

16

Page 16: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Elastic Block Store (EBS)

• Persistent disks (volumes)

• Can be moved from VM to VM

• Can have multiple per VM

17

Page 18: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

AWS Management

• Command Line & Programming API

• Web Management Console

– https://console.aws.amazon.com/

• Demo!

19

Page 19: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Dream...

• Offer Smalltalk in the Cloud

• Let me know what you want

– Pharo

– GemStone/S

20

Page 20: Smalltalk in the Cloud - ESUGesug.org/data/ESUG2013/2-Tue/05-Smalltalk in the Cloud.pdf · Smalltalk in the Cloud ESUG 2013, Annecy, ... • In this talk we describe a Platform as

Thanks & Questions?

• Thanks to

– Dale Henrichs, Peter McLean, and Monty Williams

– John Thornton (JonnyT)

– Norm Green and Dan Ware for the project

– Tim Felgentreff of HPI

• Contact

[email protected]

– http://programmingGems.wordpress.com 21