Volatile Storage
Overview
GridGain Volatile storage is designed to provide a quick and responsive storage without guarantees of data persistence.
When it is enabled for the data region, GridGain 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 GridGain 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 data region. |
|
initSize |
|
Sets the initial space allocated to the data region. |
maxSize |
|
Sets the maximum space that can be allocated to the data region. |
evictionMode |
|
Sets the eviction algorithm to use. Possible values: |
evictionThreshold |
|
Configures when the eviction process starts. |
emptyPagesPoolSize |
100 |
The maximum number of empty pages GridGain will try to keep. |
pageSize |
16384 |
The size of pages in the storage, in bytes. |
memoryAllocator.type |
unsafe |
Memory allocator configuration. Uses |
Configuration Example
In GridGain 9, 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" : [
{
"name" : "aimemory",
"engine" : aimem,
"replacementMode" : "CLOCK"
}
]
}
}
}
You can then use the profile (in this case, aimemory
) in your distribution zone configuration.
© 2024 GridGain Systems, Inc. All Rights Reserved. Privacy Policy | Legal Notices. GridGain® is a registered trademark of GridGain Systems, Inc.
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.