Durable Memory
Ignite Durable Memory
Apache Ignite memory-centric platform is based on the durable memory architecture that allows storing and processing data and indexes both in memory and on disk when the Ignite Persistent Store feature is enabled. The memory architecture helps achieve in-memory performance with the durability of disk using all the available resources of the cluster.

A full overview of this feature is available in the Java documentation.
Configuration
Durable Memory can be configured from C# code, in app.config or web.config XML, or in Spring XML. The example below shows how to configure the same via code and app.config:
var cfg = new IgniteConfiguration
{
DataStorageConfiguration = new DataStorageConfiguration
{
DefaultDataRegionConfiguration = new DataRegionConfiguration
{
Name = "defaultRegion",
InitialSize = 128 * 1024 * 1024, // 128 MB,
MaxSize = 4L * 1024 * 1024 * 1025 // 4 GB
},
DataRegionConfigurations = new[]
{
new DataRegionConfiguration
{
Name = "customRegion",
InitialSize = 32 * 1024 * 1024, // 32 MB,
MaxSize = 512 * 1024 * 1025 // 512 MB
}
}
},
CacheConfiguration = new[]
{
new CacheConfiguration
{
Name = "cache1" // Use default region
},
new CacheConfiguration
{
Name = "cache2",
DataRegionName = "customRegion"
}
}
};
<igniteConfiguration>
<cacheConfiguration>
<cacheConfiguration name="cache1" /> <!-- Use default region -->
<cacheConfiguration dataRegionName="customRegion" name="cache2" />
</cacheConfiguration>
<dataStorageConfiguration>
<dataRegionConfigurations>
<dataRegionConfiguration initialSize="33554432" maxSize="537395200" name="customRegion" />
</dataRegionConfigurations>
<defaultDataRegionConfiguration initialSize="134217728" maxSize="4299161600" name="defaultRegion" />
</dataStorageConfiguration>
</igniteConfiguration>
For more details, refer to the memory configuration documentation.
Updated over 4 years ago