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

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.
  1. The socket-binding Parameter

    The socket-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" />
    
    Copy to Clipboard Toggle word wrap
  2. The cache-container Parameter

    The cache-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" />
    
    Copy to Clipboard Toggle word wrap
  3. The worker-threads Parameter

    The worker-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}" />
    
    Copy to Clipboard Toggle word wrap
  4. The idle-timeout Parameter

    The idle-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.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
    <memcached-connector socket-binding="memcached" 
                         cache-container="local" 
                         worker-threads="${VALUE}" 
                         idle-timeout="${VALUE}" />
    
    Copy to Clipboard Toggle word wrap
  5. The tcp-nodelay Parameter

    The tcp-nodelay parameter specifies whether TCP packets will be delayed and sent out in batches. Valid values for this parameter are true and false. The default value for this parameter is true. This is an optional parameter.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
    <memcached-connector socket-binding="memcached" 
                         cache-container="local" 
                         worker-threads="${VALUE}" 
                         idle-timeout="{VALUE}"
                         tcp-nodelay="{TRUE/FALSE}"/>
    
    Copy to Clipboard Toggle word wrap
  6. The send-buffer-size Parameter

    The send-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.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
    <memcached-connector socket-binding="memcached" 
                         cache-container="local" 
                         worker-threads="${VALUE}" 
                         idle-timeout="{VALUE}"
                         tcp-nodelay="{TRUE/FALSE}" 
                         send-buffer-size="{VALUE}" />
    
    Copy to Clipboard Toggle word wrap
  7. The receive-buffer-size Parameter

    The receive-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.
    <subsystem xmlns="urn:infinispan:server:endpoint:6.0">
    <memcached-connector socket-binding="memcached" 
                         cache-container="local" 
                         worker-threads="${VALUE}" 
                         idle-timeout="{VALUE}"
                         tcp-nodelay="{TRUE/FALSE}" 
                         send-buffer-size="{VALUE}" 
                         receive-buffer-size="${VALUE}" />
    </subsystem>
    
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat