在Oracle Coherence 12中,可以提供持久存储(NOT数据库)的backing-map-scheme
是什么?
对于Ex。 Redis写入RDB / AOF文件并在重新启动后恢复KV条目。
答案 0 :(得分:1)
在操作配置中配置持久性环境。
<persistence-environments>
<!-- -Dcoherence.distributed.persistence.base.dir=override USR_HOME -->
<persistence-environment id="stage_env_w_active_store">
<persistence-mode>active</persistence-mode>
<active-directory system-property="coherence.distributed.persistence.active.dir">
/opt/datastore/staged/active</active-directory>
<snapshot-directory system-property="coherence.distributed.persistence.snapshot.dir">
/opt/datastore/staged/snapshot</snapshot-directory>
<trash-directory system-property="coherence.distributed.persistence.trash.dir">
/opt/datastore/staged/trash</trash-directory>
</persistence-environment>
<persistence-environment id="stage_env_w_ondemand_store">
<persistence-mode>on-demand</persistence-mode>
<active-directory system-property="coherence.distributed.persistence.active.dir">
/opt/datastore/staged/dactive</active-directory>
<snapshot-directory system-property="coherence.distributed.persistence.snapshot.dir">
/opt/datastore/staged/dsnapshot</snapshot-directory>
<trash-directory system-property="coherence.distributed.persistence.trash.dir">
/opt/datastore/staged/dtrash</trash-directory>
</persistence-environment>
</persistence-environments>
在缓存方案中配置了backing-map-scheme持久性。
<distributed-scheme>
<scheme-name>server</scheme-name>
<service-name>PartitionedCache</service-name>
<local-storage system-property="coherence.distributed.localstorage">true</local-storage>
<backing-map-scheme>
<local-scheme>
<high-units>{back-limit-bytes 0B}</high-units>
</local-scheme>
</backing-map-scheme>
<persistence>
<environment>stage_env_w_active_store</environment>
</persistence>
<autostart>true</autostart>
</distributed-scheme>
“磁盘上使用的活动空间(MB)”显示了JMX JVisualVM中使用的apt空间。