Step Four - Scaling the Hello World Application

Search XAP 7.0
Searching XAP 7.0.X Documentation
Browse XAP 7.0
Offline Documentation

Download latest offline documentation in HTML format:
xap-7.0.2-documentation.zip (12.3MB)

                                                              

Tutorial summary: Learn how to scale the Hello World Application. Approx 10 min

Overview

Example Folder - <GigaSpaces Root>\examples\helloworld
Features Introduced - Scaling, Partitioning, Routing, Routing Index.


Before you begin

We recommend that you go through the following steps before starting this tutorial:

  1. Download GigaSpaces and Set Up Your Development Environment to work with GigaSpaces - this is needed for running the tutorial sample application.
  2. Step One - Using Processing Units for Scaling - a short introduction to what a Processing Unit is - Recommended.
  3. Step Two - Creating the Hello World Application - create and run a Processing Unit.
  4. Step Three - Deploying the Hello World onto the Service Grid - deploy the Processing Unit onto the Service Grid and monitor it at runtime.

Goals

Scale the Hello World application

Steps

  1. Understanding Scaling using Data Partitioning and Routing
  2. Starting the Service Grid Components
  3. Configuring the application to be partitioned over 3 instances
  4. Deploying the partitioned application
  5. Expected output
  6. Undeploying the 3-Instance Deployment
  7. Configuring scaling to be partitioned over 2 instances, with 1 backup each
  8. Deploying the partitioned application
  9. Expected output
  10. Testing Failover Recovery and Self-Healing




Application Components

The Processing Unit we deploy onto the Service Grid is our Hello World Processor application from the previous steps. Reminder - a feeder application writes each Message object to the processor Processing Unit, which is in turn processed by the Processor class.


Figure 1. The Hello World Feeder and Processor Processing Units

Infrastructure (Service Grid) Components

The Service Grid is a set of containers (Grid Service Containers - GSCs) managed by one or more a managers (Grid Service Managers - GSMs).
Each Grid Service Container runs inside its own JVM. The containers themselves host Processing Units.
The Grid Service Manager manages the deployment of processing units and their provisioning to the the Grid Service Containers. In production scenarios you may want to have more than one manager, so it does not become a single point of failure.
The GigaSpaces Management Center is the graphical user interface for administrating and monitoring the Service Grid and the deployed applications.


Figure 2. A Service Grid consisting of a Grid Manager and two Grid Containers

Scaled-Out Deployment La

IMPORTANT: This is an old version of GigaSpaces XAP. Click here for the latest version.

Labels

 
(None)