Ignite Summit 2025 — Watch on demand 

Edit

Volatile Storage

Overview

Apache Ignite Volatile storage is designed to provide a quick and responsive storage without guarantees of data persistence.

When it is enabled for the data region, Apache Ignite stores all data in the data region in RAM. Data will be lost on cluster shutdown, so make sure to have a separate data region for persistent storage.

Profile Configuration

Each Apache Ignite storage engine can have several storage profiles. Each profile has the following properties:

Property Default Description

engine

The name of the storage engine.

name

The name of the storage profile.

initSizeBytes

268435456

Initial memory region size in bytes, when the used memory size exceeds this value, new chunks of memory will be allocated.

maxSizeBytes

268435456

Maximum memory region size in bytes.

Configuration Example

In Apache Ignite 3, you can create and maintain configuration in either HOCON or JSON. The configuration file has a single root "node," called ignite. All configuration sections are children, grandchildren, etc., of that node. The example below shows how to configure one data region that uses volatile storage.

{
  "ignite" : {
    "storage" : {
      "profiles" : [
        {
           "engine": "aimem",
           "name": "default_aimem",
           "initSizeBytes": 268435456,
           "maxSizeBytes": 268435456
          }
      ]
    }
  }
}

You can then use the profile (in this case, default_aimem) in your distribution zone configuration.