Skip to content

ghkarmseveer/hazelcast-tomcat-sessionmanager-42-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hazelcast-tomcat-sessionmanager-42-example

See: hazelcast/hazelcast-tomcat-sessionmanager#42

This repo reproduces the issue linked above using:

  • an nginx docker container running as a round-robin load balancer
  • three basic tomcat instances upstream from the nginx instance, configured to use the hazelcast-tomcat-sessionmanager
  • basic gatling tests executing concurrent requests to simulate concurrent ajax requests and reproduce the issue.

Prerequisites

Setup the Hazelcast Session Manager:

mkdir -p cluster/lib
curl https://github.com/hazelcast/hazelcast-tomcat-sessionmanager/releases/download/v1.1.4/hazelcast-tomcat85-sessionmanager-1.1.4.jar > cluster/lib/hazelcast-tomcat85-sessionmanager-1.1.4.jar
curl http://central.maven.org/maven2/com/hazelcast/hazelcast-all/3.9.1/hazelcast-all-3.9.1.jar > cluster/lib/hazelcast-all-3.9.1.jar
mvn clean package

Start the docker container

docker-compose up

Run the gatling tests

In a different terminal window:

cd gatling-test
mvn gatling:execute

The location of the gatling reports will be printed to the terminal at the end of execution

Results

The results can be viewed in the gatling report.

Further the following message (apart from the session id) can be seen in the docker-compose logs.

tomcatTwo_1    | INFO: No Session found for:1857EF2BEE65A74635C23BDC98E78B11

Releases

No releases published

Packages

No packages published

Languages

  • Scala 63.9%
  • Java 24.8%
  • Shell 11.3%