Skip to content

Commit

Permalink
Add replacement scripts for offload scenarios (follow up on cluster…
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar committed Sep 12, 2024
1 parent 537238d commit f653ff9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,20 @@ http://localhost:8080/clusterbench/jboss-node-name[/clusterbench/jboss-node-name

Servlet which prints out the node name as a value of the `jboss.node.name` system property.

== Server Configurations

The `/scripts` directory contains CLI scripts for reconfiguring the application server to specific test scenarios:

|===
| Script | Description

| infinispan-session-management-offload-attribute.cli
| Reconfigures the default session manager to use cache `offload` with `ATTRIBUTE` granularity.

| infinispan-session-management-offload-session.cli
| Reconfigures the default session manager to use cache `offload` with `SESSION` granularity.
|===

== Custom Build Profiles

There a several profiles to test specific scenarios where the standard build needs to be modified.
Expand Down
13 changes: 13 additions & 0 deletions scripts/infinispan-session-management-offload-attribute.cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright The ClusterBench Authors
# SPDX-License-Identifier: Apache-2.0
#

# This script reconfigures the default session manager to use cache `offload` with `ATTRIBUTE` granularity.
# Running this requires the given `offload` cache to be already pre-configured in the `web` cache container.

batch
/subsystem=distributable-web/infinispan-session-management=offload:add(cache-container=web, cache=offload, granularity=ATTRIBUTE)
/subsystem=distributable-web/infinispan-session-management=offload/affinity=primary-owner:add()
/subsystem=distributable-web:write-attribute(name=default-session-management, value=offload)
run-batch
13 changes: 13 additions & 0 deletions scripts/infinispan-session-management-offload-session.cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright The ClusterBench Authors
# SPDX-License-Identifier: Apache-2.0
#

# This script reconfigures the default session manager to use cache `offload` with `SESSION` granularity.
# Running this requires the given `offload` cache to be already pre-configured in the `web` cache container.

batch
/subsystem=distributable-web/infinispan-session-management=offload:add(cache-container=web, cache=offload, granularity=SESSION)
/subsystem=distributable-web/infinispan-session-management=offload/affinity=primary-owner:add()
/subsystem=distributable-web:write-attribute(name=default-session-management, value=offload)
run-batch

0 comments on commit f653ff9

Please sign in to comment.