Upload
shayhassidim
View
5
Download
1
Tags:
Embed Size (px)
DESCRIPTION
GigaSpaces Cloud Computing Framework 4 XAP Quick Tour - v2
Citation preview
GigaSpaces Cloud Computing Framework
Test Drive GigaSpacesTest Drive GigaSpaces
Quick TourQuick Tour
Agenda
• Login
• Data-Grid Demo
• Trader Desktop Demo
• PetClinic Demo
Login
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
Login via a Free
Trial Key
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
Login via Trial Key
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
Login via GigaSpaces Cloud license and
Your Amazon account
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
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
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
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
Data-Grid
Demo
Data Grid Demo Architecture
GSC MachineGSC Machine
GSCGSC
GSCGSC
Replication
Backup 1Primary 1
Replication
Backup 2Primary 2
UI Machine
GSM Machine
GSM
GS-UI
Start the Data-Grid Demo
Click the Data-Grid Button
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
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
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
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
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
Data-Grid Demo - Test High-Availability and Self healing
1. Terminate one of the GSC
2. Click OK
Data-Grid Demo - Test High-Availability and Self healing
The System got now only primary spaces running
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
Data-Grid Demo - Test High-Availability and Self healing
The System will recover and place the missing backup spaces within the newly
started containers
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
Trader Stock
Desktop Demo
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)
Start the Trader Stock Desktop Demo
Click the Trader Stock Desktop
Button
Trader Stock Desktop Demo – Step 1
Once the deployment is completed (~3 min), click the Load Balancer Running link
Trader Stock Desktop Demo – Step 2
The Stocks page will be displayed
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!
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
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
Behind the Scenes – Step 5
• You will see feeder PU , Professor PU running the Stock Space instances ,
StockDemo PU running the web containers :
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
Pet Click
Demo
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
Start the Pet Click Demo
Click the Pet Clinic Button
Pet Click Demo
Once deployment is completed (~3 min), click the Load Balancer Running link
Pet Click Demo
The Pet Clinic application page will be displayed
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
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
Pet Click Demo – Test Persistency – Step 3
1. Click the Find Owner
2. Click the Add Owner
Pet Click Demo – Test Persistency – Step 4
1. Fill in some values and Click the Add
Owner button
2. New Owner will be displayed
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
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
Need help?
Email us at [email protected]