Apache Ignite has a durable memory architecture for storing and accessing data and indexes. The memory architecture for in-memory and on-disk storage for native persistence is the same. The available memory is split into multiple pages (you can configure the page size) and are stored in off-heap (outside the Java heap) and on disk.
The durable memory can have multiple data regions and each data region can be configured separately to set the size, eviction policies, persistent flag and many other attributes. The following diagram depicts the durable memory architecture:
The basic components are as follows:
- Data regions: By default, Apache Ignite creates a single data region which can take upto 20% of available RAM. We can configure the durable memory size using the DataStorageConfiguration API. The following code snippet configures our durable...