Skip to content

Instantly share code, notes, and snippets.

@maniksurtani maniksurtani/infinispan.xml Secret
Created Sep 16, 2013

Embed
What would you like to do?
An Infinispan config file depicting cross-site failover
<?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
You can’t perform that action at this time.