Apache geode 多区域磁盘存储

Apache geode multiple regions disk store

如果我有 10 个或 15 个 geode 区域,并且我想保留 5 个区域,我可以为所有区域使用 1 个磁盘存储吗?

<region name="region1" refid="REPLICATE_PERSISTENT"><region-attributes disk-store-name="regionStore" disk-synchronous="false"></region-attributes></region>
<region name="region2" refid="REPLICATE/>
<region name="region3" refid="REPLICATE/>
<region name="region4" refid="REPLICATE_PERSISTENT"><region-attributes disk-store-name="regionStore" disk-synchronous="false"></region-attributes></region>
<region name="region5" refid="REPLICATE_PERSISTENT"><region-attributes disk-store-name="regionStore" disk-synchronous="false"></region-attributes></region>

那么磁盘存储配置是

<disk-store name="regionStore" compaction-threshold="40" 
    auto-compact="false" allow-force-compaction="true"
    max-oplog-size="512" queue-size="10000"  
    time-interval="15" write-buffer-size="65536"
    disk-usage-warning-percentage="80"
    disk-usage-critical-percentage="98">
   <disk-dirs>
       <disk-dir>C:\DiskStores\regionStore</disk-dir>
   </disk-dirs>
</disk-store>

同一个disk-store可以在多个地区共享,是的。不过,最好的做法是每个区域 disk-store