Skip to content

Commit

Permalink
Merge pull request clusterbench#508 from rhusar/507
Browse files Browse the repository at this point in the history
Simplify the configuration scripts (resolves clusterbench#507)
  • Loading branch information
rhusar authored Sep 20, 2024
2 parents f940a83 + 389e961 commit a1cd9b0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 36 deletions.
10 changes: 5 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -225,19 +225,19 @@ Servlet which prints out the node name as a value of the `jboss.node.name` syste

== Server Configurations

The `/scripts` directory contains CLI scripts for reconfiguring the application server for specific test scenarios:
The `scripts` directory at the root of the repository contains CLI scripts
for reconfiguring the application server for specific test scenarios.
These scripts can be combined to achieve a desired resulting configuration.

|===
| Script | Description

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

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

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

== Custom Build Profiles
Expand Down
6 changes: 1 addition & 5 deletions scripts/infinispan-session-management-attribute.cli
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@

# This script reconfigures the default session manager to use `ATTRIBUTE` granularity.

batch
/subsystem=distributable-web/infinispan-session-management=granular:add(cache-container=web, granularity=ATTRIBUTE)
/subsystem=distributable-web/infinispan-session-management=granular/affinity=primary-owner:add()
/subsystem=distributable-web:write-attribute(name=default-session-management, value=granular)
run-batch
/subsystem=distributable-web/infinispan-session-management=default:write-attribute(name=granularity, value=ATTRIBUTE) {allow-resource-service-restart=true}
13 changes: 0 additions & 13 deletions scripts/infinispan-session-management-offload-attribute.cli

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/infinispan-session-management-offload-session.cli

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/infinispan-session-management-offload.cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright The ClusterBench Authors
# SPDX-License-Identifier: Apache-2.0
#

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

/subsystem=distributable-web/infinispan-session-management=default:write-attribute(name=cache, value=offload) {allow-resource-service-restart=true}

0 comments on commit a1cd9b0

Please sign in to comment.