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
…ache instead of a replicated one.

Currently, our cloud tooling configures clustering in the cloud using a replicated cache mode which is suboptimal as it does not scale.
Such cache mode does not scale and is not suited for applications in the cloud that are supposed to be scalable.
In this mode Infinispan replicates all entries in the cache to all nodes in the cluster.
It doesn't scale, as adding new nodes does not enlarge the cluster capacity.

Moreover, we should relax the isolation level to READ_COMMITTED (from REPEATABLE_READ) and transaction mode to NONE (from BATCH).
  • Loading branch information
rhusar committed May 21, 2024
1 parent 43758d7 commit 0af7a33
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 53 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature-group-spec name="os-infinispan-dist-web" xmlns="urn:jboss:galleon:feature-group:1.0">
<feature-group name="infinispan-dist-web"/>
<feature-group name="os-infinispan-web-repl-cache"/>
<feature-group name="os-infinispan-web-dist-cache"/>
</feature-group-spec>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature-group-spec name="os-infinispan-web-dist-cache" xmlns="urn:jboss:galleon:feature-group:1.0">
<feature spec="subsystem.infinispan">
<feature spec="subsystem.infinispan.cache-container">
<param name="cache-container" value="web"/>
<param name="default-cache" value="dist"/>
<feature spec="subsystem.infinispan.cache-container.distributed-cache">
<param name="distributed-cache" value="dist"/>
<feature spec="subsystem.infinispan.cache-container.distributed-cache.component.expiration">
<param name="interval" value="0"/>
</feature>
</feature>
</feature>
</feature>
</feature-group-spec>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<exclude feature-id="subsystem.jgroups.stack.protocol:stack=udp,protocol=PING"/>
<exclude feature-id="subsystem.jgroups.stack.protocol.MPING:stack=tcp"/>

<feature-group name="os-infinispan-web-repl-cache"/>
<feature-group name="os-infinispan-web-dist-cache"/>
</layer-spec>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema_version: 1
name: jboss.container.wildfly.galleon.cloud-galleon-pack.layers.clustering
version: '1.0'
description: Adjustement for Galleon layers that depends on infinispan and groups.
description: Adjustment for Galleon layers that depends on Infinispan and JGroups.

execute:
- script: configure.sh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature-group-spec name="os-infinispan-dist-web" xmlns="urn:jboss:galleon:feature-group:1.0">
<feature-group name="infinispan-dist-web"/>
<feature-group name="os-infinispan-web-repl-cache"/>
<feature-group name="os-infinispan-web-dist-cache"/>
</feature-group-spec>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature-group-spec name="os-infinispan-web-dist-cache" xmlns="urn:jboss:galleon:feature-group:1.0">
<feature spec="subsystem.infinispan">
<feature spec="subsystem.infinispan.cache-container">
<param name="cache-container" value="web"/>
<param name="default-cache" value="dist"/>
<feature spec="subsystem.infinispan.cache-container.distributed-cache">
<param name="distributed-cache" value="dist"/>
<feature spec="subsystem.infinispan.cache-container.distributed-cache.component.expiration">
<param name="interval" value="0"/>
</feature>
</feature>
</feature>
</feature>
</feature-group-spec>

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
<exclude feature-id="socket-binding-group.socket-binding:socket-binding-group=standard-sockets,socket-binding=jgroups-udp-fd"/>
<exclude feature-id="socket-binding-group.socket-binding:socket-binding-group=standard-sockets,socket-binding=jgroups-tcp-fd"/>

<feature-group name="os-infinispan-web-repl-cache"/>
<feature-group name="os-infinispan-web-dist-cache"/>
</layer-spec>

0 comments on commit 0af7a33

Please sign in to comment.