Skip to content

Commit

Permalink
CLOUD-4211 Cloud clustering profiles should configure a distributed c…
Browse files Browse the repository at this point in the history
…aches instead of a replicated ones
  • Loading branch information
rhusar committed Dec 18, 2024
1 parent 6a58293 commit 3edeb93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Infinispan, add a more efficient cache if we already have the dist distributed cache.
# Infinispan
# Add a distributed cache optimized for the cloud called 'sessions' if we already have the dist distributed cache.
if (outcome == success) of /subsystem=infinispan/cache-container=web/distributed-cache=dist:read-resource
/subsystem=infinispan/cache-container=web/replicated-cache=repl:add
/subsystem=infinispan/cache-container=web:write-attribute(name=default-cache,value=repl)
/subsystem=infinispan/cache-container=web/replicated-cache=repl/component=locking:add(isolation=REPEATABLE_READ
/subsystem=infinispan/cache-container=web/replicated-cache=repl/component=transaction:add(mode=BATCH
/subsystem=infinispan/cache-container=web/replicated-cache=repl/store=file:add
/subsystem=infinispan/cache-container=web/distributed-cache=sessions:add
/subsystem=infinispan/cache-container=web/distributed-cache=sessions/component=expiration:add(interval=0)
/subsystem=infinispan/cache-container=web:write-attribute(name=default-cache,value=sessions)
end-if
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void testDefaultConfiguration()
assertTrue(mojo.contextRoot);
mojo.execute();
final Path dir = getTestDir();
checkJar(dir, true, true, null, null, mojo.recordState, "default-cache=\"repl\"", "org.jboss.as.clustering.jgroups", "proxy-address-forwarding=\"true\"", "bindall");
checkJar(dir, true, true, null, null, mojo.recordState, "default-cache=\"sessions\"", "org.jboss.as.clustering.jgroups", "proxy-address-forwarding=\"true\"", "bindall");
checkDeployment(dir, true);
}
}

0 comments on commit 3edeb93

Please sign in to comment.