For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start a Local Cache Development Cluster

Set up a single-node GridGain 8 cluster with Docker Compose for cache-centric development and testing.

Introduction

Your application needs a fast caching layer. In this tutorial, you start a single-node cluster with Docker Compose and verify it is running. Every subsequent tutorial in the cache-centric Foundations path builds on this environment.

The cache-centric architecture is used by GridGain 8. It organizes server nodes in a ring topology with no minimum node count.

A single server node is all you need to start developing. Later tutorials add nodes when you explore partition distribution and resilience.

Prerequisites

  • Docker 20.10 or later

  • Docker Compose 2.23.1 or later (ships with Docker Desktop)

  • Port 47500 available on your machine (cluster discovery)

  • Port 10800 available on your machine (client connections)

  • 2 GB of available RAM for the server node

GridGain 8 Enterprise requires a trial license:

  1. Go to gridgain.com/tryfree and request an Enterprise trial download

  2. Check your email for a download link to gridgain-enterprise-8.10.0.zip

  3. Download and extract the zip file

  4. Copy gridgain-license.xml from the top level of the extracted directory into your project directory (you create this directory in Step 1)

The trial license is valid for 30 days. The 1.1 GB zip contains the full binary distribution, but only the license file is needed for Docker.

The GridGain 8 Docker images are amd64 only. Docker Desktop runs them under Rosetta 2 emulation. Startup takes longer than native images, and JVM performance is reduced. This is an emulation artifact, not a product limitation.

What You Will Learn

A running single-node cluster verified through its startup log and a cluster state check. You will:

  • Start a cache-centric cluster node with Docker Compose

  • Read the topology snapshot log to confirm the node is active

  • Run a cluster state check to verify connectivity

Create the Docker Compose Environment

Create a project directory and the configuration files. The cluster needs a docker-compose.yml for the server container and an XML configuration for node discovery.

Create the XML configuration file that configures static IP discovery. Save this as cache-cluster/ignite-config.xml:

The TcpDiscoveryVmIpFinder configures static IP discovery. In a Docker network, node1 resolves to the container's IP address.

The peerClassLoadingEnabled flag has to match on every node in the cluster, server and client. Later tutorials in this path ship user-defined classes (cache configurations, compute tasks) from the client to the server, which requires the flag set to true. Setting it now avoids restarting the cluster with a new config when you reach those tutorials. A client that connects with a different value fails immediately with Remote node has peer class loading enabled flag different from local.

Now create the Docker Compose file. Save this as cache-cluster/docker-compose.yml:

The additional volume mount maps your trial license into the container at the path GridGain expects. Verify the license file is in your project directory before starting:

Your project directory should now contain:

Start the Cluster

Start the server node in detached mode and follow the logs:

The node takes 10-30 seconds to start (longer on Apple Silicon due to emulation). Watch for the banner and the topology snapshot:

The key line is the topology snapshot. It confirms:

  • servers=1 means one server node is active

  • clients=0 means no client applications have connected yet (you add one in a later tutorial)

  • state=ACTIVE means the cluster is ready to accept operations

Press Ctrl+C to stop following the logs. The container continues running in the background.

Verify the Cluster is Active

Run a cluster state check to confirm the node is accepting connections:

The output confirms Cluster is active. The cluster ID and tag are auto-generated and will differ on your machine.

You may see a line that reads JVM_OPTS environment variable is set, but will not be used. To pass JVM options use CONTROL_JVM_OPTS. This is cosmetic. The control.sh utility runs its own JVM separate from the server. The warning is safe to ignore.

Why One Node?

Starting with one node gives you the fastest possible setup. Later tutorials add server nodes when you explore partition distribution and what happens when a node leaves the cluster.

Managing the Cluster

To stop the cluster and preserve its state for next time:

To restart:

To destroy the cluster and remove all data:

The cluster runs in-memory with no persistence configured. Stopping the container preserves the JVM state, but destroying the container (down) removes all cached data. Persistence configuration is covered in a later tutorial.

Summary

You started a single-node cache-centric cluster with Docker Compose and verified it is active. The server node is listening on port 47500 (discovery) and port 10800 (client connections).

Next Step

In Cache Data and Experience the Speed, you connect a Java application as a thick client, create caches, and store your first data. The thick client joins the cluster ring and enables features like near-cache that are unique to the cache-centric architecture.

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?