Modifying the Default Disk Store
Modifying the Default Disk Store
You can modify the behavior of the default disk store by specifying the attributes you want for the disk store named "DEFAULT".
Whenever you use disk stores without specifying the disk store to use, GemFire uses the disk store named "DEFAULT".
For example, these region and queue configurations specify persistence and/or overflow, but do not specify the disk-store-name. Because no disk store is specified, these use the disk store named "DEFAULT".
- gfsh:
gfsh>create region --name=regionName --type=PARTITION_PERSISTENT_OVERFLOW
- cache.xml
<region refid="PARTITION_PERSISTENT_OVERFLOW"/>
<cache-server port="40404"> <client-subscription eviction-policy="entry" capacity="10000"/> </cache-server>
Change the Behavior of the Default Disk Store
GemFire initializes the default disk store with the default disk store configuration settings. You can modify the behavior of the default disk store by specifying the attributes you want for the disk store named "DEFAULT". The only thing you can’t change about the default disk store is the name.
The following example changes the default disk store to allow manual compaction and to use multiple, non-default directories:
<disk-store name="DEFAULT" allow-force-compaction="true"> <disk-dirs> <disk-dir>/export/thor/customerData</disk-dir> <disk-dir>/export/odin/customerData</disk-dir> <disk-dir>/export/embla/customerData</disk-dir> </disk-dirs> </disk-store>
Related Topics |
---|
com.gemstone.gemfire.cache.DiskStore |