> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/tools/enterprise/control-center/getting-started/demo.md).

# Connecting Demo Cluster

Run GridGain's preconfigured demo cluster and streaming application, and attach it to Control Center.

GridGain provides a preconfigured demo you can use to see what a real application look like from within Control Center.

If you already have a GridGain cluster, you can skip this step and connect to your own cluster as described in the [next step](https://mariadb.com/docs/tools/enterprise/control-center/getting-started/connect/connect-gridgain-cluster.md).

## Prerequisites

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

* Docker 19 or later, or Docker Desktop Community 2.3 or later, including Docker Compose 1.25.5 or later
* Apache Maven 3.3 or later

{% hint style="info" %}
Cluster must have open egress on `TCP:8080`. Control Center must have open ingress for `TCP:8080`. If the cluster is SSL-enabled, change `8080` to `443`.
{% endhint %}

## 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 the cluster. [Download](https://github.com/GridGain-Demos/ignite-streaming-monitoring-demo) and unzip the demo source repository or use Git to clone the repository:

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

## Start the Demo GridGain Cluster

To start the demo cluster:

1. Launch Docker.
2. Open a terminal window and navigate to the root of the demo you have downloaded or cloned.
3. To start a two-node GridGain cluster, with each node running as a separate container, run:

   ```bash
   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.

## Prepare for Attachment to Control Center

To work with a local copy of Control Center:

1. Connect to the container of the first cluster node:

   ```bash
   docker exec -it docker-ignite-server-node-1 bash
   ```
2. Go into the `/opt/gridgain/bin/` folder of the container:

   ```bash
   cd /opt/gridgain/bin/
   ```
3. Instruct the cluster to connect to the local Control Center container:

   ```bash
   ./management.sh http://host.docker.internal:3000
   ```
4. Generate a new one-time token to register the cluster with Control Center. With the default configuration, the cluster attaches automatically and you can skip this step:

   ```bash
   ./management.sh --token
   ```

   The token appears in the response to the `--token` command:

   ![Token response](https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-5931890fdc9908187ef15a0ab679f35c67c49f66%2Fcc-getting-started-token.png?alt=media)
5. Copy the token aside to use it to [Attach Cluster to Control Center](#attach-cluster-to-control-center).
6. Quit the node's container:

   ```bash
   exit
   ```

Now, the cluster is configured to work with the local installation of Control Center.

## Attach Cluster to Control Center

To attach cluster:

1. In Control Center, click **Attach cluster**.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If you already have other clusters attached, you can find the <strong>Attach cluster</strong> button in the <strong>Cluster management</strong> screen.</p></div>
2. In the **Attach cluster** wizard that opens:

   1. Make sure you have **GridGain** selected.
   2. Enter the connection token.
   3. Click **Continue**.

   The wizard shows the process of the attachment.

   Once the cluster is attached to Control Center, you can see the dashboard with metrics.
3. Activate your cluster from the **Dashboard** to enable subsequent steps.

## 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](https://www.pubnub.com/developers/realtime-data-streams/financial-securities-market-orders/).

1. Create an executable file:

   ```bash
   mvn clean package
   ```
2. Dockerize the application:

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

   ```bash
   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:

```sql
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. The demo nodes run GridGain Ultimate Edition. To monitor your own cluster, you need a GridGain 8 or GridGain 9 cluster with an Enterprise or Ultimate Edition license. To obtain one, [contact support](https://mariadb.com/docs/tools/enterprise/control-center/support.md).

To explore more Control Center features you can:

* [Connect your personal GridGain cluster](https://mariadb.com/docs/tools/enterprise/control-center/getting-started/connect/connect-gridgain-cluster.md)
* [Install Control Center on-premise](https://mariadb.com/docs/tools/enterprise/control-center/admin-guide/installation/install-binary.md)

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
