如何在 cache.xml 中以 ha 模式配置 gemfire
<?xml version="1.0" encoding="UTF-8"?><cache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://geode.apache.org/schema/cache" xsi:schemaLocation="http://geode.apache.org/schema/cache http://geode.apache.org/schema/cache/cache-1.0.xsd" version="1.0" lock-lease="120" lock-timeout="60" search-timeout="300" is-server="false" copy-on-read="false"/>
<!-- Run one secondary server -->
<cache>
<pool name="red1" subscription-enabled="true" subscription-redundancy="1">
<locator host="node5" port="41111"/>
<locator host="node6" port="41111"/>
</pool>
</cache>