此内容没有您所选择的语言版本。
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:
- The
cacheparameter defines the name for the remote cache. If left undefined, the default cache is used instead.<remote-store cache="default">
<remote-store cache="default">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The
socket-timeoutparameter sets whether the value defined inSO_TIMEOUT(in milliseconds) applies to remote Hot Rod servers on the specified timeout. A timeout value of0indicates an infinite timeout.<remote-store cache="default" socket-timeout="60000"><remote-store cache="default" socket-timeout="60000">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The
tcp-no-delaysets whetherTCP_NODELAYapplies on socket connections to remote Hot Rod servers.<remote-store cache="default" socket-timeout="60000" tcp-no-delay="true"><remote-store cache="default" socket-timeout="60000" tcp-no-delay="true">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The
hotrod-wrappingsets 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"><remote-store cache="default" socket-timeout="60000" tcp-no-delay="true" hotrod-wrapping="true">Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The single parameter for the
remote-serverelement is as follows:- The
outbound-socket-bindingparameter sets the outbound socket binding for the remote server.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow