-
-
Save maniksurtani/cdd5420af764c907e342 to your computer and use it in GitHub Desktop.
An Infinispan config file depicting cross-site failover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<infinispan | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:infinispan:config:5.2 http://www.infinispan.org/schemas/infinispan-config-5.2.xsd" | |
xmlns="urn:infinispan:config:5.2"> | |
<global> | |
<site local="LON"/> | |
<transport clusterName="infinispan-cluster" distributedSyncTimeout="50000" nodeName="Jalapeno" machineId="m1" | |
rackId="r1" siteId="s1"> | |
<!-- Note that the JGroups transport uses sensible defaults if no configuration property is defined. --> | |
<properties> | |
<property name="configurationFile" value="jgroups-udp.xml"/> | |
</properties> | |
<!-- See the JGroupsTransport javadocs for more flags --> | |
</transport> | |
</global> | |
<default> | |
<locking concurrencyLevel="100" lockAcquisitionTimeout="1000"/> | |
<sites> | |
<backups> | |
<backup site="NYC" strategy="SYNC" backupFailurePolicy="IGNORE" timeout="12003"/> | |
<backup site="SFO" strategy="ASYNC"/> | |
</backups> | |
</sites> | |
<jmxStatistics enabled="false"/> | |
</default> | |
<namedCache name="backupNyc"> | |
<sites> | |
<backups/> | |
<backupFor remoteCache="someCache" remoteSite="NYC"/> | |
</sites> | |
</namedCache> | |
<namedCache name="importantCache"> | |
<sites> | |
<backups> | |
<backup site="NYC2" strategy="SYNC" backupFailurePolicy="FAIL" timeout="160000"/> | |
</backups> | |
</sites> | |
</namedCache> | |
<namedCache name="inheritor"/> | |
<namedCache name="noBackups"> | |
<sites/> | |
</namedCache> | |
<namedCache name="customBackupPolicy"> | |
<sites> | |
<backups> | |
<backup site="NYC2" strategy="SYNC" backupFailurePolicy="CUSTOM" | |
failurePolicyClass="org.infinispan.xsite.CountingCustomFailurePolicy" timeout="160000"/> | |
</backups> | |
</sites> | |
</namedCache> | |
</infinispan> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment