此内容没有您所选择的语言版本。
11.12. Configure the Interface Using Connectors
Red Hat JBoss Data Grid supports three connector types, namely:
- The
hotrod-connectorelement, which defines the configuration for a Hot Rod based connector. - The
memcached-connectorelement, which defines the configuration for a memcached based connector. - The
rest-connectorelement, which defines the configuration for a REST interface based connector.
11.12.1. Configure Hot Rod Connectors 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The following procedure describes the attributes used to configure the Hot Rod connector in Red Hat JBoss Data Grid's Remote Client-Server Mode. Both the
hotrod-connector and topology-state-transfer elements must be configured based on the following procedure.
Procedure 11.1. Configuring Hot Rod Connectors for Remote Client-Server Mode
The
hotrod-connectorElementThehotrod-connectorelement defines the configuration elements for use with Hot Rod.The
socket-bindingParameterThesocket-bindingparameter specifies the socket binding port used by the Hot Rod connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" /><subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" />Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
cache-containerParameterThecache-containerparameter names the cache container used by the Hot Rod connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" cache-container="local" /><subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" cache-container="local" />Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
worker-threadsParameterTheworker-threadsparameter specifies the number of worker threads available for the Hot Rod connector. The default value for this parameter is the number of cores available multiplied by two. This is an optional parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" /><subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <hotrod-connector socket-binding="hotrod" cache-container="local" worker-threads="${VALUE}" />Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
idle-timeoutParameterTheidle-timeoutparameter specifies the time (in milliseconds) the connector can remain idle before the connection times out. The default value for this parameter is-1, which means that no timeout period is set. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
tcp-nodelayParameterThetcp-nodelayparameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter aretrueandfalse. The default value for this parameter istrue. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
send-buffer-sizeParameterThesend-buffer-sizeparameter indicates the size of the send buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
receive-buffer-sizeParameterThereceive-buffer-sizeparameter indicates the size of the receive buffer for the Hot Rod connector. The default value for this parameter is the size of the TCP stack buffer. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The
topology-state-transferElementThetopology-state-transferelement specifies the topology state transfer configurations for the Hot Rod connector. This element can only occur once within ahotrod-connectorelement.The
lock-timeoutParameterThelock-timeoutparameter specifies the time (in milliseconds) after which the operation attempting to obtain a lock times out. The default value for this parameter is10seconds. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
replication-timeoutParameterThereplication-timeoutparameter specifies the time (in milliseconds) after which the replication operation times out. The default value for this parameter is10seconds. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
update-timeoutParameterTheupdate-timeoutparameter specifies the time (in milliseconds) after which the update operation times out. The default value for this parameter is30seconds. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
external-hostParameterTheexternal-hostparameter specifies the hostname sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the host address. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
external-portParameterTheexternal-portparameter specifies the port sent by the Hot Rod server to clients listed in the topology information. The default value for this parameter is the configured port. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
lazy-retrievalParameterThelazy-retrievalparameter indicates whether the Hot Rod connector will carry out retrieval operations lazily. The default value for this parameter istrue. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow