infinispan 5迁移到infinspan 7

时间:2015-02-09 05:44:04

标签: infinispan

我开始使用infinispan 5.3并根据我的需要准备了配置文件。现在我想迁移到infinispan 7.但是我发现找到等效的infinispan 7配置文件有很多问题。请帮助我找到infinispan 7.但我发现找到等效的infinispan 7配置文件有很多问题。这是我的infinispan 5配置文件。

<?xml version="1.0" encoding="UTF-8"?>
<infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
      xmlns="urn:infinispan:config:5.1">

    <global>

        <asyncListenerExecutor
            factory="org.infinispan.executors.DefaultExecutorFactory">
            <properties>
                <property name="maxThreads" value="5" />
                <property name="threadNamePrefix"
                    value="AsyncListenerThread" />
            </properties>
        </asyncListenerExecutor>

        <asyncTransportExecutor
            factory="org.infinispan.executors.DefaultExecutorFactory">
            <properties>
                <property name="maxThreads" value="20" />
                <property name="threadNamePrefix"
                    value="AsyncSerializationThread" />
            </properties>
        </asyncTransportExecutor>

        <evictionScheduledExecutor
            factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
            <properties>
                <property name="threadNamePrefix"
                    value="EvictionThread" />
            </properties>
        </evictionScheduledExecutor>

        <replicationQueueScheduledExecutor
            factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
            <properties>
                <property name="threadNamePrefix"
                    value="ReplicationQueueThread" />
            </properties>
        </replicationQueueScheduledExecutor>

        <globalJmxStatistics enabled="false" jmxDomain="infinispan" />

        <transport clusterName="PC_SITE_1"
            distributedSyncTimeout="50000"
            transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport"
            nodeName="">
            <properties>
                <property name="configurationFile"
                    value="./tmp/_clusterconfig/pc_jgroups_main.xml" />
            </properties>
        </transport>

        <serialization
            marshallerClass="org.infinispan.marshall.VersionAwareMarshaller"
            version="1.0" />


        <shutdown hookBehavior="DEFAULT" />

    </global>

    <default>
        <locking isolationLevel="READ_COMMITTED"
            lockAcquisitionTimeout="60000" writeSkewCheck="false"
            concurrencyLevel="5000" useLockStriping="false" />
        <jmxStatistics enabled="false" />
        <storeAsBinary enabled="true"/>
    </default>

    <namedCache name="GLOBAL_ASYNC_CACHE">

    <transaction
                       transactionManagerLookupClass="com.suntecgroup.tbms.container.services.cluster.ContainerCacheTxManagerLookup"
            syncRollbackPhase="false" syncCommitPhase="false"
            useEagerLocking="false" lockingMode="PESSIMISTIC"/>
      <clustering mode="replication">
           <!--<async useReplQueue="true" replQueueInterval="100"
            asyncMarshalling="true" replQueueMaxElements="10000" />-->
            <sync replTimeout="360000" />
           <stateTransfer timeout="360000"  fetchInMemoryState="true" />
      </clustering>
      <lazyDeserialization enabled="true" />
     </namedCache>
    <namedCache name="GLOBAL_ASYNC_STR_CACHE">
    <transaction transactionMode="NON_TRANSACTIONAL" />
        <clustering mode="replication">
            <sync replTimeout="360000" />
            <stateTransfer timeout="360000" fetchInMemoryState="true" />
        </clustering>
    </namedCache>

    <namedCache name="GLOBAL_ASYNC_STR_EVCT_CACHE">
    <transaction transactionMode="NON_TRANSACTIONAL" />
        <clustering mode="replication">
            <sync replTimeout="360000" />
            <stateTransfer timeout="360000" fetchInMemoryState="true" />
        </clustering>
    </namedCache>

    <namedCache name="LOCAL_CACHE">

    <transaction
            transactionManagerLookupClass="com.suntecgroup.tbms.container.services.cluster.ContainerCacheTxManagerLookup"
            syncRollbackPhase="false" syncCommitPhase="false"
            useEagerLocking="false" lockingMode="PESSIMISTIC"/>

    </namedCache>

</infinispan>

1 个答案:

答案 0 :(得分:1)

线程池设置在元素中配置,然后设置为在元素上使用它们(按名称绑定)。这已移出元素(已删除)。

默认缓存未定义为它自己的元素,但它被声明为其中的另一个缓存,然后缓存容器定义哪一个是属性中的默认值。

具有某些聚类模式的命名缓存已成为其自身的元素等。