47
GigaSpaces Cloud Computing Framework Test Drive Test Drive GigaSpaces GigaSpaces Quick Tour Quick Tour

GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Embed Size (px)

DESCRIPTION

GigaSpaces Cloud Computing Framework 4 XAP Quick Tour - v2

Citation preview

Page 1: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

GigaSpaces Cloud Computing Framework

Test Drive GigaSpacesTest Drive GigaSpaces

Quick TourQuick Tour

Page 2: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Agenda

• Login

• Data-Grid Demo

• Trader Desktop Demo

• PetClinic Demo

Page 3: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login

Page 4: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login Options

• Login via a Trial Key– Get it from GigaSpaces web site via a simple registration process.

– Provides you one hour free ride running only Demo applications on

the cloud

• Login via GigaSpaces Cloud license and Your Amazon

account keys– Get the GigaSpaces Cloud license from GigaSpaces web site via a

simple registration process

– Provides you full access including running your application on the

cloud

– Per pay use model

Page 5: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via a Free

Trial Key

Page 6: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via Trial Key

1. Access http://www.gigaspaces.com/mycloud

2. Click the Create a free trail code here

3. The registration page will open. Place your email and click Next

4. Confirm the Message. You will be routed back to the login page and an email will

be send to you with the trial key

Page 7: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via Trial Key

[email protected]

wdemomyemailgmailcom

1. Get the key from the email sent

2. Copy and paste into the Code field and

click Next

3. The Cloud console will be opened with One

Hour Trial Title

Page 8: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via GigaSpaces Cloud license and

Your Amazon account

Page 9: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via GigaSpaces Cloud license and Your Amazon account

1. Select the “I am a new user”

2. Fill in the fields and click Next

3. Confirm the Message. An email will be sent to you

Page 10: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Login via GigaSpaces Cloud license and Your Amazon account

Aug 22, 2009~Cloud_myemail@SEbCI12345GSVPQOXP#PREMIUM^6.0XAPPremium%UNBOUND

1. Copy your GigaSpaces Cloud License from the email sent

2. Place the GigaSpaces Cloud License and your Amazon

key and secret key and click Next

3. The Cloud console will be opened with full access to

all options

[email protected]

Page 11: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Select Your Demo Application

1. Click the Trader Stock Desktop , Data-Grid or the Pet Clinic Button

2. Details about each running machine will be displayed here

Page 12: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

The Demo Applications

• Data-Grid

– Data-Grid - Demonstrates a simple clustered space running 2 partitions with one backup for

each partition. The benchmark tool is used to populate the IMDG with data and perform

different space operations.

• The Trader Stock Desktop

– Demonstrates a stock feed into a partitioned space with a Java EE web application front

end. Front end is based on Spring framework MVC module on the server side and ExtJS

JavaScript library on the client side.

– Full code located at http://www.openspaces.org/display/DAE/Stock+Demo+Documentation

• The Pet Clinic

– Spring PetClinic - The Spring sample PetClinic application ported to GigaSpaces XAP

platform. Spring MVC based web application using mySQL as the persistency layer using

the Mirror Service.

– Full code located at http://www.openspaces.org/display/DAE/GigaSpaces+PetClinic

Page 13: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid

Demo

Page 14: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data Grid Demo Architecture

GSC MachineGSC Machine

GSCGSC

GSCGSC

Replication

Backup 1Primary 1

Replication

Backup 2Primary 2

UI Machine

GSM Machine

GSM

GS-UI

Page 15: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Start the Data-Grid Demo

Click the Data-Grid Button

Page 16: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo – Step 1 – Start the GS-UI

1. Once all the machines will be in ‘running’ mode and the Data-Grid will be deployed Click

the Manage button

2. The GigaSpaces Desktop UI Applet will be started – Make sure your Amazon default Security Group have ports 22,80 and 443

opened

Page 17: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo – Step 2 – The GS-UI will be started

1. The GS-UI will be started – A progress bar will be

displayed with a Confirmation Box. Click

Yes.

2. After 2 minutes - The GS-UI will be displayed

with the Data-Grid components

Page 18: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo – Step 3 – Run the Benchmark

1. Move to the Space View Tab. Drill into one of the spaces and click the Benchmark Icon – The benchmark View will be displayed at the right

side

2. Click the Start button – This will write 10,000 objects into the IMDG

1. Move to the Space View Tab. Drill into one of the spaces and click the Benchmark Icon – The benchmark View will be displayed at the right

side

Page 19: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo – Step 4 – Watch the Statistics

1. To view the space operations statistics – Click the Statistics Icon

To view the space operations statistics – Click the Statistics Icon

2. You will have throughput history graph and current throughput and

total operations bar displayed

Page 20: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo – More things you can do…

• Test High-Availability and Self healing

– You can Terminate of the machines and see how the

data-grid recovers itself

• Run different Space operations

– You can perform other space operations such as

read , take

• Deploy additional clusters

– You can use the existing GSC to host additional space

clusters

Page 21: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo - Test High-Availability and Self healing

1. Terminate one of the GSC

2. Click OK

Page 22: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo - Test High-Availability and Self healing

The System got now only primary spaces running

Page 23: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo - Start New Containers

2. Close the Dialog. New machines will be started for you. These will join the grid

Click the Add Machine button, Have the small machine selected and

type 2 as the number of machine to start

1. Click the Add Machine button – a dialog will be opened, have the small machine selected and

type 2 as the number of machine to start

Page 24: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Data-Grid Demo - Test High-Availability and Self healing

The System will recover and place the missing backup spaces within the newly

started containers

Page 25: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Shut Down The Data-Grid Demo

2. Click OK

Once you are done, shut down the application. This

will terminate all the machines running the

application on the cloud

Page 26: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Trader Stock

Desktop Demo

Page 27: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Trader Stock Desktop Architecture

Client

GSC Machine

GSC

Web Application

HTTPD Load Balancer Machine

HTTP Load Balancer

GSC Machine

GSC

Web Application

GSM Machine

GSM

GSC Machine

GSC

Processing Unit

ServiceBean

Primary 1

GSC

Processing Unit

ServiceBean

Backup 2

GSC Machine

GSC

Processing Unit

ServiceBean

Backup 1

GSC

Processing Unit

ServiceBean

Primary 1

DynamicProvisioning Agent

(DPA)

Page 28: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Start the Trader Stock Desktop Demo

Click the Trader Stock Desktop

Button

Page 29: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Trader Stock Desktop Demo – Step 1

Once the deployment is completed (~3 min), click the Load Balancer Running link

Page 30: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Trader Stock Desktop Demo – Step 2

The Stocks page will be displayed

Page 31: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Auto-Scalability – Step 3

• Click multiple times on the “running” link to open more web clients. This will

generate some load (request/sec) on the system.

• As soon as the request/sec will grow beyond a certain threshold you will see

new machine being started. This machine will host a new web-container

New Machine will be started on the fly!

Page 32: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Self-Healing – Step 4

• Shutdown one of the machines by clicking the terminate button and see how

your web client is behaving.

• You will see that even though the machine was terminated the client is

hardly affected.

Click the Terminate Red button

Page 33: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Behind the Scenes – Step 5

• Click the Manage button. After 2 minutes the GS-UI will be started.

3. A progress bar will be displayed and a Confirmation Box.

Click Yes

2. A progress bar will be displayed and a Confirmation Box.

Click Yes

1. Click Continue

Page 34: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Behind the Scenes – Step 5

• You will see feeder PU , Professor PU running the Stock Space instances ,

StockDemo PU running the web containers :

Page 35: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Shut Down The Trader Stock Desktop Application

Once you are done, shut down the application. This

will terminate all the machines running the

application on the cloud

Click OK

Page 36: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click

Demo

Page 37: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo Architecture

Database and Mirror Machine

Client

GSC Machine

GSC

Web Application

HTTPD Load Balancer Machine

HTTP Load Balancer

GSC Machine

GSC

Web Application

GSM Machine

GSM

GSC Machine

GSC

Processing Unit

ServiceBean

Primary 1

GSC

Processing Unit

ServiceBean

Backup 2

GSC Machine

GSC

Processing Unit

ServiceBean

Backup 1

GSC

Processing Unit

ServiceBean

Primary 1

Page 38: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Start the Pet Click Demo

Click the Pet Clinic Button

Page 39: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo

Once deployment is completed (~3 min), click the Load Balancer Running link

Page 40: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo

The Pet Clinic application page will be displayed

Page 41: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo – Test Persistency – Step 1

• Access the database machine by Clicking the Mirror Public IP

• Once the Desktop will be started you will be able to access the database.

1. Get the Mirror (Database) machine

public IP

2. Access the Machine via HTTP.

The UI applet will be displayed. Click

Continue

3. A progress bar will be displayed and a Confirmation Box.

Click Yes 2. Access the

Machine via HTTP. The UI applet will be

displayed. Click Continue

3. A progress bar will be displayed and a Confirmation Box.

Click Yes

Page 42: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo – Test Persistency – Step 2

2. Access the database using:

mysql –u pc –p petclinicPassword: pc

Select All ownersThere are 10 initial Owners

1. Start a new Linux Console

Page 43: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo – Test Persistency – Step 3

1. Click the Find Owner

2. Click the Add Owner

Page 44: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo – Test Persistency – Step 4

1. Fill in some values and Click the Add

Owner button

2. New Owner will be displayed

Page 45: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Pet Click Demo – Test Persistency – Step 5

• Check the database – A new row should have been added into the owners

table

See the new Row added with the new

Owner

Page 46: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Shut Down The Pet Clinic Application

2. Click OK

1. Once you are done, shut down the application. This

will terminate all the machines running the

application on the cloud

Page 47: GigaSpaces Cloud Computing Framework 4 XAP - Quick Tour - v2

Need help?

Email us at [email protected]