GigaSpaces Cloud Computing Framework

Document Sample
GigaSpaces Cloud Computing Framework Powered By Docstoc
					GigaSpaces Cloud
Computing Framework

Test Drive GigaSpaces
Quick 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
   – Register to GigaSpaces XAP Amazon Devpay product
       • Per pay use model
Login via a Free
    Trial Key
  Login via Trial Key
                                         1. Access
                              http://www.gigaspaces.com/mycloud


                                        2. “Click Here to receive a
                                                 code” link




   3. Place your email and
          click Continue


4. A success message will
    be displayed. Click the
      “To Get Back to the
    login page click here”
              link
Login via Trial Key

       myemail@gmail.com
                                      1. Get the key from the
                                              email sent




wdemomyemailgmailcom

                                      2. Copy and paste into the
                                          Code field and click Go




          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. Click the Sign up link




  2. Fill in the fields and click
               Continue

3. A success message will be
    displayed. Click the link to
      Register to the Amazon
       XAP Devpay product
Login via GigaSpaces Cloud license and Your Amazon account
                                          1. Login into your amazon
                                                     account


                                       2. Review the price list and Click
                                               the Place your order




                           3. A Thank you message will be displayed.
                              The lower part of the page will allow you
                              to login using the cloud license sent and
                                           the amazon keys
Login via GigaSpaces Cloud license and Your Amazon
account
     myemail@gmail.com
                                                                              1. Copy your GigaSpaces Cloud
                                                                                  License from the email sent




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




2. Place the GigaSpaces Cloud
     License and your Amazon
   key and secret key and click
               Login


 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




                                   Replication

       GS-UI

                      Primary 1                   Backup 1

                        GSC                        GSC
      UI Machine




                                   Replication


         GSM
                      Primary 2                   Backup 2

                        GSC                         GSC
     GSM Machine
                     GSC Machine                 GSC Machine
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
Data-Grid Demo – Step 4 – Watch the Statistics




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

                                            2. You will have throughput history
                                          To view the space operations and total
                                         graph and current throughput statistics
                                                 – Click the bar displayed
                                                 operations Statistics Icon
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


   Click the Add Machine
  1. Click the Add Machine
  button – Have the will be
   button, a dialog small
   machine selected and
   opened, have the small
   machine selected and
  type 2 as the number of
       machine number
  type 2 as theto start of
       machine to start


2. Close the Dialog. New machines will be started
          for you. These will join the grid
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

 Once you are done, shut
down the application. This
   will terminate all the
  machines running the
 application on the cloud




         2. Click OK
Trader Stock
Desktop Demo
Trader Stock Desktop Architecture



                                                    Processing    Processing
                                                       Unit          Unit

                                                      Service       Service
                                                       Bean          Bean
              HTTP Load          Web Application
               Balancer

 Client                               GSC

                                                     Primary 1     Backup 1
          HTTPD Load Balancer
                                  GSC Machine
               Machine                                               GSC
                                                       GSC




                                                    Processing    Processing
                 Dynamic                               Unit          Unit
            Provisioning Agent                         Service       Service
                  (DPA)                                 Bean          Bean




                                 Web Application
                  GSM
                                      GSC                          Primary 1
                                                     Backup 2

                                                       GSC           GSC
             GSM Machine          GSC Machine

                                                   GSC Machine   GSC Machine
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.

                                        1. Click Continue


                                                       2. A progress bar will
                                                       3.
                                                        be displayed and a
                                                        Confirmation Box.
                                                              Click Yes
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


                                                   Processing    Processing
                                                      Unit          Unit

                                                     Service       Service
                                                      Bean          Bean
              HTTP Load         Web Application
               Balancer
 Client                              GSC
          HTTPD Load Balancer
               Machine                              Primary 1     Backup 1
                                 GSC Machine
                                                      GSC           GSC
                 GSM

             GSM Machine
                                                   Processing    Processing
                                                      Unit          Unit

                                                      Service       Service
                                                       Bean          Bean




                                Web Application

                                     GSC                          Primary 1
                                                    Backup 2

                                                      GSC           GSC
                                 GSC Machine
          Database and Mirror
               Machine                            GSC Machine   GSC Machine
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                                           3. A progress bar will
       public IP                                               be displayed and a
                                                               Confirmation Box.
                                                                     Click Yes
2. Access the Machine
    via HTTP. The UI
      applet will be
    displayed. Click
        Continue
Pet Click Demo – Test Persistency – Step 2

                                              1. Start a new Linux
                                                    Console




                                            mysql –u pc –p petclinic



                               Select * from owners;
             2.
 Access the database using:
  mysql –u pc –p petclinic
       Password: pc
     Select All owners
 There are 10 initial Owners
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

        Select * from owners;




                                               See the new Row
                                              added with the new
                                                    Owner
Shut Down The Pet Clinic Application

1. Once you are done, shut
down the application. This
    will terminate all the
   machines running the
 application on the cloud




      2. Click OK
Need help?




  Email us at cloud@gigaspaces.com