0
テラコッタサーバーが利用できないときに、テラコッタサーバー設定からdiskStoreにスワップするために私のアプリを設定する必要があります。これを行う方法はありますか? 私はehcache.xmlにterracottaConfig要素を設定するとき、私は起動することはできませんアプリケーションをTerracottaサーバが到達不能だった場合.... これは私のehcache.xml設定です:Ehcache:TerracottaサーバーがオフラインのときにdiskStoreにスワップする方法は?
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" name="gpCacheManager">
<diskStore path="java.io.tmpdir" />
<terracottaConfig rejoin="true">
<tc-config>
<servers>
<server host="XXX.XXX.XXX.XX" name="host1">
</server>
</servers>
<clients>
<logs>app/logs-%i</logs>
</clients>
<nonstop immediateTimeout="true" timeoutMillis="3000">
<timeoutBehavior type="localReads" />
</nonstop>
</tc-config>
</terracottaConfig>
<defaultCache maxElementsInMemory="10000" eternal="false"
timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false"
diskPersistent="false" diskExpiryThreadIntervalSeconds="120"
memoryStoreEvictionPolicy="LRU">
<terracotta clustered="true">
<nonstop immediateTimeout="false" timeoutMillis="3000">
<timeoutBehavior type="localReads" />
</nonstop>
</terracotta>
</defaultCache>
<cache name="oxmCache" maxElementsInMemory="10000" eternal="false"
timeToIdleSeconds="240" timeToLiveSeconds="240" overflowToDisk="false"
diskPersistent="false" diskExpiryThreadIntervalSeconds="240"
memoryStoreEvictionPolicy="LRU">
<terracotta clustered="true">
<nonstop immediateTimeout="false" timeoutMillis="3000">
<timeoutBehavior type="localReads" />
</nonstop>
</terracotta>
</cache>
</ehcache>
ありがとうございました!
本当の問題は、アプリケーションをオフラインで使用できないことです(テラコッタサーバーなし)。利用可能なTerracottaサーバーなしでアプリケーションを起動する方法がある場合、サーバーが利用可能になると、調整用のディスク上の部分データを管理します... – AndyPower