Pivotal GemFire® v8.2

Configure Region Persistence and Overflow

Configure Region Persistence and Overflow

Plan persistence and overflow for your data regions and configure them accordingly.

Use the following steps to configure your data regions for persistence and overflow:
  1. Configure your disk stores as needed. See Designing and Configuring Disk Stores. The cache disk store defines where and how the data is written to disk.
    <disk-store name="myPersistentStore" . . . >
    <disk-store name="myOverflowStore" . . . >
  2. Specify the persistence and overflow criteria for the region. If you are not using the default disk store, provide the disk store name in your region attributes configuration. To write asynchronously to disk, specify disk-synchronous="false".
    • For overflow, specify the overflow criteria in the region's eviction-attributes and name the disk store to use.
      <region name="overflowRegion" . . . >
        <region-attributes disk-store-name="myOverflowStore" disk-synchronous="true">
            <!-- Overflow to disk when 100 megabytes of data reside in the
                 region -->
            <lru-memory-size maximum="100" action="overflow-to-disk"/>


      You cannot configure lru-memory-size using gfsh.

    • For persistence, set the data-policy to persistent-replicate and name the disk store to use.
      <region name="partitioned_region" refid="PARTITION_PERSISTENT">
        <region-attributes disk-store-name="myPersistentStore">
          . . . 

When you start your members, overflow and persistence will be done automatically, with the disk stores and disk write behaviors.

Note: You can also configure Regions and Disk Stores using the gfsh command-line interface. See Region Commands and Disk Store Commands.
Related Topics
com.gemstone.gemfire.cache.RegionAttributes for data region persistence information
com.gemstone.gemfire.cache.EvictionAttributes for data region overflow information