Skip to main content
Version: 3.1.0 (Latest)

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:

PropertyDefaultDescription
engineThe name of the storage engine.
nameThe name of the storage profile.
initSizeBytes268435456Initial memory region size in bytes, when the used memory size exceeds this value, new chunks of memory will be allocated.
maxSizeBytes268435456Maximum 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.