Skip to content

Commit

Permalink
ISPN-4937 Add examples for indexing configuration on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Fernandes committed Nov 7, 2014
1 parent 3049361 commit 7f74a0e
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/integration/build/build-configs.xml
Expand Up @@ -64,6 +64,10 @@
paramTemplateFile="configuration/standalone/template.xml"
paramSubsystemsFile="configuration/examples/subsystems-leveldb-cs-local.xml"
paramOutputFile="${generated.configs.examples}/standalone-leveldb-cs-local.xml"/>
<generate-server-config
paramTemplateFile="configuration/standalone/template.xml"
paramSubsystemsFile="configuration/examples/subsystems-indexing.xml"
paramOutputFile="${generated.configs.examples}/clustered-indexing.xml"/>
<generate-server-config
paramTemplateFile="configuration/standalone/template.xml"
paramSubsystemsFile="configuration/examples/subsystems-jdbc-clustered.xml"
Expand Down
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config>
<subsystems>
<subsystem>configuration/subsystems/logging.xml</subsystem>
<subsystem supplement="indexing">configuration/examples/subsystems/infinispan.xml</subsystem>
<subsystem>configuration/subsystems/io.xml</subsystem>
<subsystem>configuration/subsystems/jdr.xml</subsystem>
<subsystem supplement="two-nodes">configuration/examples/subsystems/jgroups.xml</subsystem>
<subsystem>configuration/subsystems/jmx.xml</subsystem>
<subsystem>configuration/subsystems/naming.xml</subsystem>
<subsystem>configuration/subsystems/remoting.xml</subsystem>
<subsystem>configuration/subsystems/threads.xml</subsystem>
<subsystem>configuration/subsystems/transactions.xml</subsystem>
<subsystem>configuration/subsystems/undertow.xml</subsystem>
</subsystems>
</config>
Expand Up @@ -282,6 +282,62 @@
</cache-container>
</replacement>
</supplement>
<supplement name="indexing">
<replacement placeholder="@@default-cache-container@@" attributeValue="clustered" />
<replacement placeholder="CACHE-CONTAINERS">
<cache-container name="clustered" default-cache="default" statistics="true">
<transport executor="infinispan-transport" lock-timeout="60000" cluster="LON" stack="udp"/>
<distributed-cache name="default" mode="SYNC" start="EAGER"/>
<!-- Indexes are local to each node, stored on the filesystem -->
<replicated-cache name="OnDiskNonSharedIndex" mode="SYNC" start="EAGER">
<indexing index="ALL">
<property name="default.indexmanager">near-real-time</property>
<property name="default.indexBase">${java.io.tmpdir}/OnDiskNonSharedIndex</property>
</indexing>
</replicated-cache>
<!-- Indexes are local to each node, stored in memory -->
<replicated-cache name="InMemoryNonSharedIndex" mode="SYNC" start="EAGER">
<indexing index="ALL">
<property name="default.directory_provider">ram</property>
</indexing>
</replicated-cache>
<!-- Indexes are local to each node, stored on infinispan itself on configured caches -->
<replicated-cache name="InfinispanCustomNonSharedIndex" mode="SYNC" start="EAGER">
<indexing index="ALL">
<property name="default.directory_provider">infinispan</property>
<property name="default.metadata_cachename">indexMetadata</property>
<property name="default.data_cachename">indexData</property>
<property name="default.locking_cachename">indexLocking</property>
</indexing>
</replicated-cache>
<local-cache name="indexMetadata" mode="SYNC" start="EAGER">
<transaction mode="NONE"/>
<indexing index="NONE"/>
</local-cache>
<local-cache name="indexData" mode="SYNC" start="EAGER">
<transaction mode="NONE"/>
<indexing index="NONE"/>
</local-cache>
<local-cache name="indexLocking" mode="SYNC" start="EAGER">
<transaction mode="NONE"/>
<indexing index="NONE"/>
</local-cache>
<!-- Indexes are shared between all nodes, stored on infinispan itself -->
<distributed-cache name="InfinispanSharedIndex" mode="SYNC" start="EAGER">
<indexing index="LOCAL">
<property name="default.indexmanager">org.infinispan.query.indexmanager.InfinispanIndexManager</property>
</indexing>
</distributed-cache>
<!-- Auto config based on cache type -->
<distributed-cache name="sharedIndexInfinispanDirectory" mode="SYNC" start="EAGER">
<indexing index="LOCAL" auto-config="true"/>
</distributed-cache>
<replicated-cache name="nearRealtimeFileSystemIndex" mode="SYNC" start="EAGER">
<indexing index="ALL" auto-config="true"/>
</replicated-cache>
</cache-container>
</replacement>
</supplement>
<outbound-socket-binding name="remote-store-hotrod-server">
<remote-destination host="remote-host" port="11222" />
</outbound-socket-binding>
Expand Down

0 comments on commit 7f74a0e

Please sign in to comment.