<infinispan>
<jgroups>
<!-- Extends the default UDP stack. -->
<stack name="xsite" extends="udp">
<!-- Adds RELAY2 for cross-site replication. -->
<!-- Names the local site as LON. -->
<!-- Specifies 1000 nodes as the maximum number of site masters. -->
<relay.RELAY2 site="LON" xmlns="urn:org:jgroups" max_site_masters="1000"/>
<!-- Uses the default TCP stack for inter-cluster communication. -->
<!-- Names all sites that act as backup locations. -->
<remote-sites default-stack="tcp">
<remote-site name="LON"/>
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
<cache-container name="default" statistics="true">
<!-- Use the "xsite" stack for cluster transport. -->
<transport cluster="${cluster.name}" stack="xsite"/>
</cache-container>
</infinispan>
<infinispan>
<jgroups>
<!-- Extends the default UDP stack. -->
<stack name="xsite" extends="udp">
<!-- Adds RELAY2 for cross-site replication. -->
<!-- Names the local site as LON. -->
<!-- Specifies 1000 nodes as the maximum number of site masters. -->
<relay.RELAY2 site="LON" xmlns="urn:org:jgroups" max_site_masters="1000"/>
<!-- Uses the default TCP stack for inter-cluster communication. -->
<!-- Names all sites that act as backup locations. -->
<remote-sites default-stack="tcp">
<remote-site name="LON"/>
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
<cache-container name="default" statistics="true">
<!-- Use the "xsite" stack for cluster transport. -->
<transport cluster="${cluster.name}" stack="xsite"/>
</cache-container>
</infinispan>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
<jgroups>
<!-- Uses the default JGroups UDP stack for intra-cluster traffic. -->
<stack name="xsite" extends="udp">
<!-- Adds RELAY2 to the stack for inter-cluster transport. -->
<!-- Names the local site. Data in caches from the local site is replicated to backup locations. -->
<!-- Configures a maximum of 1000 site masters for the local cluster. -->
<relay.RELAY2 xmlns="urn:org:jgroups"
site="LON"
max_site_masters="1000"/>
<!-- Specifies all site names and uses the default JGroups TCP stack for inter-cluster transport. -->
<remote-sites default-stack="tcp">
<!-- Names all sites that participate in cross-site replication. -->
<remote-site name="LON"/>
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
<jgroups>
<!-- Uses the default JGroups UDP stack for intra-cluster traffic. -->
<stack name="xsite" extends="udp">
<!-- Adds RELAY2 to the stack for inter-cluster transport. -->
<!-- Names the local site. Data in caches from the local site is replicated to backup locations. -->
<!-- Configures a maximum of 1000 site masters for the local cluster. -->
<relay.RELAY2 xmlns="urn:org:jgroups"
site="LON"
max_site_masters="1000"/>
<!-- Specifies all site names and uses the default JGroups TCP stack for inter-cluster transport. -->
<remote-sites default-stack="tcp">
<!-- Names all sites that participate in cross-site replication. -->
<remote-site name="LON"/>
<remote-site name="NYC"/>
</remote-sites>
</stack>
</jgroups>
Copy to ClipboardCopied!Toggle word wrapToggle overflow
提示
设置 max_site_masters >= Data Grid 集群中的节点数,以实现使用备份请求的最佳性能。