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
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
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)
/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:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow