GridGain Developers Hub

Connecting to Demo Cluster

To make it simpler to see what Control Center offers you, GridGain provides a preconfigured demo that you can use to see how real applications look like.

If you already have a GridGain cluster, you can skip this step and connect to your own cluster as described in the next step.

Prerequisites

You will need some tools preconfigured to run the demo cluster:

  • Docker 19 or later, or Docker Desktop Community 2.3 or later;

  • Docker Compose 1.25.5 or later;

  • Apache Maven 3.3 or later.

Download the Demo project

The demo project has a simple preconfigured GridGain cluster that you can run with Docker and a simple application that simulates load on it. Download and unzip the source repository or use Git to clone the repository:

git clone https://github.com/GridGain-Demos/ignite-streaming-monitoring-demo.git

Start Demo GridGain Cluster

Open the demo folder and start a two-node GridGain cluster, with each node running as a separate container:

docker-compose -f docker/ignite-cluster.yaml up -d --scale ignite-server-node=2

The cluster nodes will store data in ignite-streaming-monitoring-demo\work\db folder. By default, 150MB is allocated per node.

Connect to GridGain Clusters

Connect the cluster to Control Center:

  • Get a one-time access token from docker logs for either node. The token is valid for 5 minutes. Here is how your output may look like:

    [14:27:55]
    +---------------------------------------------------------------------------------------------------+
    | Open the link in a browser to monitor your cluster:                                               |
    | https://portal.gridgain.com/go/49bad3c0-d65b-4b4e-b1e4-4b35e2e6b4a0                               |
    +---------------------------------------------------------------------------------------------------+
    | If you are already using Control Center, you can add the cluster manually using a one-time token: |
    | 49bad3c0-d65b-4b4e-b1e4-4b35e2e6b4a0                                                              |
    |                                                                                                   |
    | NOTE: this token will expire in 5 minutes.                                                        |
    | New token can be generated with the following command: management.(sh|bat) --token                |
                         |
    +---------------------------------------------------------------------------------------------------+

    If you do not get the connection token, make sure that you have access to Control Center.

  • In Control Center UI, click Attach cluster and Attach cluster again in the next window, and enter your access token.

    Now Control Center is connected to the nodes in Docker. You can see the dashboard with metrics.

Launch Market Orders Application

Now that the cluster is running and connected, launch the application to simulate load for it. You need Internet connection, as the application will connect to PubNub Market Order data stream.

  1. Create an executable file:

    mvn clean package
  2. Dockerize the application:

    docker build -f docker/StreamingAppDockerfile -t ignite-streaming-app .
  3. Deploy the application in Docker:

    docker-compose -f docker/ignite-streaming-app.yaml up -d

Check Messages

Your cluster should be receiving messages. You can check what those messages are from SQL screen, for example:

SELECT * FROM Trade ORDER BY order_date DESC LIMIT 10;

Next Steps

Now you have a working cluster with some simulated load. Feel free to explore and try various Control Center features. GridGain nodes you launched are running GridGain Ultimate with a 1-hour demo license.

To explore more feature of Control Center you can: