이 콘텐츠는 선택한 언어로 제공되지 않습니다.

6.5. Configure Replication Mode (Library Mode)


In JBoss Data Grid's Library mode, a replicated cache configuration is as follows:
<clustering mode="repl">
        <sync replTimeout="${TIME}" />
        <stateTransfer chunkSize="${SIZE}"                       
                                  fetchInMemoryState="{true/false}"                       
                                  awaitInitialTransfer="{true/false}"                       
                                  timeout="${TIME}" />
        <transport clusterName="${NAME}"
                                     distributedSyncTimeout="${TIME}"                            
                                     strictPeerToPeer="{true/false}"                            
                                     transportClass="${CLASS}" />
</clustering>
Copy to Clipboard Toggle word wrap
The clustering element's mode parameter's value determines the clustering mode selected for the cache.
The sync element's replTimeout parameter specifies the maximum time period for an acknowledgment after a remote call. If the time period ends without any acknowledgment, an exception is thrown.
The stateTransfer element specifies how state is transferred when a node leaves or joins the cluster. It uses the following parameters:
  • The chunkSize parameter specifies the size of cache entry state batches to be transferred. If this value is greater than 0, the value set is the size of chunks sent. If the value is less than 0, all states are transferred at the same time.
  • The fetchMemoryInState parameter when set to true, requests state information from neighboring caches on start up. This impacts the start up time for the cache.
  • The awaitInitialTransfer parameter causes the first call to method CacheManager.getCache() on the joiner node to block and wait until the joining is complete and the cache has finished receiving state from neighboring caches (if fetchInMemoryState is enabled). This option applies to distributed and replicated caches only and is enabled by default.
  • The timeout parameter specifies the maximum time (in milliseconds) the cache waits for responses from neighboring caches with the requested states. If no response is received within the the timeout period, the start up process aborts and an exception is thrown.
The transport element defines the transport configuration for the cache as follows:
  • The clusterName parameter specifies the name of the cluster. Nodes can only connect to clusters that share the same name.
  • The distributedSyncTimeout parameter specifies the time to wait to acquire a lock on the distributed lock. This distributed lock ensures that a single cache can transfer state or rehash state at a time.
  • The strictPeerToPeer parameter, when set to true ensures that replication operations fail if the named cache does not exist. If set to false, the operation completes and logs messages about specific named caches not found and that replication was not performed on the nodes as a result.
  • The transportClass parameter specifies a class that represents a network transport for the cache.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat