Este conteúdo não está disponível no idioma selecionado.

6.5. Configure Distribution Mode


Distribution mode is a clustered mode in Red Hat JBoss Data Grid. Distribution mode can be added to any cache container, in both Library Mode and Remote Client-Server Mode, using the following procedure:

Procedure 6.1. The distributed-cache Element

<cache-container name="clustered" 
    default-cache="default" 
    statistics="true">
  <!-- Additional configuration information here -->
  <distributed-cache name="default"
      mode="SYNC"
      segments="20"
      start="EAGER"
      owners="2"
      statistics="true">
    <!-- Additional configuration information here -->
  </distributed-cache>
</cache-container>
Copy to Clipboard Toggle word wrap
The distributed-cache element configures settings for the distributed cache using the following parameters:
  1. The name parameter provides a unique identifier for the cache.
  2. The mode parameter sets the clustered cache mode. Valid values are SYNC (synchronous) and ASYNC (asynchronous).
  3. The (optional) segments parameter specifies the number of hash space segments per cluster. The recommended value for this parameter is ten multiplied by the cluster size and the default value is 20.
  4. The start parameter specifies whether the cache starts when the server starts up or when it is requested or deployed.
  5. The owners parameter indicates the number of nodes that will contain the hash segment.
  6. If statistics are enabled at the container level, per-cache statistics can be selectively disabled for caches that do not require monitoring by setting the statistics attribute to false.

Important

JGroups must be appropriately configured for clustered mode before attempting to load this configuration.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat