Active sessions reported by Undertow are different across nodes even if using distributed cache
Issue
-
We have a JBoss EAP installation with 2 nodes configured with a distributed session cache:
<cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan"> <transport lock-timeout="60000"/> <distributed-cache name="dist"> <locking isolation="REPEATABLE_READ"/> <transaction mode="BATCH"/> <file-store/> </distributed-cache> </cache-container>
The problem is that if we use
jboss-cli.sh
to check theactive-sessions
for an application, the numbers reported are different for each node.On node 1:
bin/jboss-cli.sh -c "/deployment=example.war/subsystem=undertow:read-resource(include-runtime)" | grep "\"active-sessions\"" "active-sessions" => 5572,
On node 2:
bin/jboss-cli.sh -c "/deployment=example.war/subsystem=undertow:read-resource(include-runtime)" | grep "\"active-sessions\"" "active-sessions" => 6987,
Environment
- Red Hat Enterprise Application Platform (EAP)
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.