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

13.6. Switching to Distributed Cache Mode for Web Session Replication


Change the web cache-container for Infinispan subsystem to dist from repl. The owners attribute defines the number of cluster nodes that will hold the session data. One of them is called primary owner, and the others are backup owners.
Following is the CLI command to update the cache mode to dist with three owners assuming an ha profile is being used:
/subsystem=infinispan/cache-container=web/:write-attribute(name=default-cache,value=dist)
/subsystem=infinispan/cache-container=web/distributed-cache=dist/:write-attribute(name=owners,value=3)
Running the above CLI will yield the following output:
<cache-container name="web" aliases="standard-session-cache" default-cache="dist" module="org.jboss.as.clustering.web.infinispan">
  	<transport lock-timeout="60000"/>
  	...
  	<distributed-cache name="dist" owners="3" l1-lifespan="0" mode="ASYNC" batching="true">
  		<file-store/>
  	</distributed-cache>
</cache-container>
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.

© 2024 Red Hat, Inc.