geode - Apache Geode 多区域磁盘存储

标签 geode

如果我有 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>

最佳答案

同一个磁盘存储可以在多个区域之间共享,是的。不过,最佳实践是每个区域都有一个磁盘存储

关于geode - Apache Geode 多区域磁盘存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71750972/

相关文章:

caching - 无法使用 apache geode wan 复制复制大值

java - clientSecurity 运行失败的 geode 示例

java - Apache Geode 服务器在负载测试期间偶尔会出现连接不足的情况

gemfire - 如何在成员组中的分区区域上运行数据相关函数?

java - Geode 上的 Apache Lucene LatLonPoint 查询

java - 是否可以使用 java 删除 gemfire 中的特定数据(键及其特定值)?

GemFire 值发生变化而无需刷新所有值

spring-boot - 尝试对 @autowired 实例进行操作时获取 null,抛出空指针异常

java - Spring Data Gemfire 定位器

java - Apache Geode - 连接查询性能