EAP 7.3 と EAP 7.4 の間での Infinispan サブシステムの変更点
Issue
EAP 7.3.9 から 7.4.2 への移行後、infinispan 9.4 から 11 への変更で、オブジェクトメモリーがヒープメモリーに変更されました。
EAP 7.3 設定:
<subsystem xmlns="urn:jboss:domain:infinispan:9.0">
<cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
...
<cache-container name="hibernate" module="org.infinispan.hibernate-cache">
<transport lock-timeout="60000"/>
<local-cache name="local-query">
<object-memory size="10000"/> <!--- object memory size -->
<expiration max-idle="100000"/>
</local-cache>
<invalidation-cache name="entity">
<object-memory size="10000"/> <!--- object memory size -->
<expiration max-idle="100000"/>
</invalidation-cache>
<replicated-cache name="timestamps"/>
</cache-container>
EAP 7.4 設定:
<subsystem xmlns="urn:jboss:domain:infinispan:12.0">
<cache-container name="ejb" default-cache="dist" aliases="sfsb" modules="org.wildfly.clustering.ejb.infinispan">
...
<cache-container name="hibernate" modules="org.infinispan.hibernate-cache">
<transport lock-timeout="60000"/>
<local-cache name="local-query">
<heap-memory size="10000"/> <!--- heap-memory size -->
<expiration max-idle="100000"/>
</local-cache>
...
<invalidation-cache name="entity">
<heap-memory size="10000"/> <!--- heap-memory size -->
<expiration max-idle="100000"/>
</invalidation-cache>
<replicated-cache name="timestamps"/>
</cache-container>
[EAP 7.4 の問題 - オブジェクトメモリー]
OPVDX001: Validation error in standalone-full-ha.xml ---------------------------
|
| 395: <transport lock-timeout="60000"/>
| 396: <local-cache name="local-query">
| 397: <object-memory size="10000"/>
| ^^^^ 'object-memory' isn't an allowed element here
|
| Elements allowed here are:
| binary-keyed-jdbc-store locking
| expiration mixed-keyed-jdbc-store
| file-store off-heap-memory
| heap-memory remote-store
| hotrod-store store
| jdbc-store transaction
|
| 398: <expiration max-idle="100000"/>
| 399: </local-cache>
| 400: <local-cache name="pending-puts">
|
| The primary underlying error message was:
| > ParseError at [row,col]:[397,21]
| > Message: WFLYCTL0198: Unexpected element
| > '{urn:jboss:domain:infinispan:12.0}object-memory' encountered
疑問点:
- 違いは何ですか?
- 異なる値を設定する必要がありますか?
- ヒープメモリーとはどういう意味ですか? メモリーの単位は MB ですか?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- infinispan サブシステム
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.