此内容没有您所选择的语言版本。
10.3. Configure the Interface Using Connectors
Red Hat JBoss Data Grid supports three connector types, namely:
- The
hotrod-connector
element, which defines the configuration for a Hot Rod based connector. - The
memcached-connector
element, which defines the configuration for a memcached based connector. - The
rest-connector
element, which defines the configuration for a REST interface based connector.
10.3.1. Configure Memcached Connectors 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The following procedure describes the attributes used to configure the memcached connector within the
connectors
element in Red Hat JBoss Data Grid's Remote Client-Server Mode.
Procedure 10.1. Configuring the Memcached Connector in Remote Client-Server Mode
The
memcached-connector
element defines the configuration elements for use with memcached.
The
socket-binding
ParameterThesocket-binding
parameter specifies the socket binding port used by the memcached connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
cache-container
ParameterThecache-container
parameter names the cache container used by the memcached connector. This is a mandatory parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" cache-container="local" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" cache-container="local" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
worker-threads
ParameterTheworker-threads
parameter specifies the number of worker threads available for the memcached connector. The default value for this parameter is 160. This is an optional parameter.<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" cache-container="local" worker-threads="${VALUE}" />
<subsystem xmlns="urn:infinispan:server:endpoint:6.0"> <memcached-connector socket-binding="memcached" cache-container="local" worker-threads="${VALUE}" />
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
idle-timeout
ParameterTheidle-timeout
parameter 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-nodelay
ParameterThetcp-nodelay
parameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter aretrue
andfalse
. The default value for this parameter istrue
. This is an optional parameter.Copy to Clipboard Copied! Toggle word wrap Toggle overflow The
send-buffer-size
ParameterThesend-buffer-size
parameter indicates the size of the send buffer for the memcached 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-size
ParameterThereceive-buffer-size
parameter indicates the size of the receive buffer for the memcached 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