此内容没有您所选择的语言版本。

13.2. Remote Cache Stores


The RemoteCacheStore is an implementation of the cache loader that stores data in a remote Red Hat JBoss Data Grid cluster. The RemoteCacheStore uses the Hot Rod client-server architecture to communicate with the remote cluster.
For remote cache stores, Hot Rod provides load balancing, fault tolerance and the ability to fine tune the connection between the RemoteCacheStore and the cluster.
The following is a sample remote cache store configuration for Red Hat JBoss Data Grid's Remote Client-Server mode.

Procedure 13.3. Configure the Remote Cache Store

The parameters of the remote-store element define the following information:
  1. The cache parameter defines the name for the remote cache. If left undefined, the default cache is used instead.
    <remote-store cache="default">
    
    Copy to Clipboard Toggle word wrap
  2. The socket-timeout parameter sets whether the value defined in SO_TIMEOUT (in milliseconds) applies to remote Hot Rod servers on the specified timeout. A timeout value of 0 indicates an infinite timeout.
    <remote-store cache="default" 
                  socket-timeout="60000">
    
    Copy to Clipboard Toggle word wrap
  3. The tcp-no-delay sets whether TCP_NODELAY applies on socket connections to remote Hot Rod servers.
    <remote-store cache="default" 
                  socket-timeout="60000" 
                  tcp-no-delay="true">
    
    Copy to Clipboard Toggle word wrap
  4. The hotrod-wrapping sets whether a wrapper is required for Hot Rod on the remote store.
    <remote-store cache="default" 
                  socket-timeout="60000" 
                  tcp-no-delay="true" 
                  hotrod-wrapping="true">
    
    Copy to Clipboard Toggle word wrap
  5. The single parameter for the remote-server element is as follows:
    1. The outbound-socket-binding parameter sets the outbound socket binding for the remote server.
    <remote-store cache="default" 
                  socket-timeout="60000" 
                  tcp-no-delay="true" 
                  hotrod-wrapping="true">
    	<remote-server outbound-socket-binding="remote-store-hotrod-server" />
    </remote-store>
    
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat