You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this test setup:
One ALB (LB stickiness enabled) in front of an ASG with 2 Tomcats. The ElastiCache cluster has also 2 nodes.
My catalina out says only this during startup. Theres no indication that an auto discovery took place (like described in the wiki).
Failover scenarios:
A tomcat failover seems to work. I killed both tomcats and after the ASG recreated two instances I was still signed in. I tried this with 5 different sessions. I saw items/get commands on both cache nodes. I dont understand why this works because my session id looks like JSESSIONID=1276981FC20CF9073C5CCA9BE91F9B78. I would expect a suffix like -001 at the end so the manager knows where to ask for the session.
But a cache node failover doesnt work at all. If I remove one of the cache nodes the tomcat does not seem to notice it. Theres no log entry and the cached items dont get synced to the remaining node (that what I expected from the docs). If I kill the tomcat (and get rerouted to another tomcat) Im signed out and the log says something like "Couldnt find session id x in memcached".
I tried to increase the log level like suggested in the wiki but I only see some thing like that
Any idea whats wrong?
Thank you very much.
The text was updated successfully, but these errors were encountered:
Hi,
I followed your wiki entry by using a config like this
I included the following libs
I use this test setup:
One ALB (LB stickiness enabled) in front of an ASG with 2 Tomcats. The ElastiCache cluster has also 2 nodes.
My catalina out says only this during startup. Theres no indication that an auto discovery took place (like described in the wiki).
Failover scenarios:
A tomcat failover seems to work. I killed both tomcats and after the ASG recreated two instances I was still signed in. I tried this with 5 different sessions. I saw items/get commands on both cache nodes. I dont understand why this works because my session id looks like
JSESSIONID=1276981FC20CF9073C5CCA9BE91F9B78
. I would expect a suffix like-001
at the end so the manager knows where to ask for the session.But a cache node failover doesnt work at all. If I remove one of the cache nodes the tomcat does not seem to notice it. Theres no log entry and the cached items dont get synced to the remaining node (that what I expected from the docs). If I kill the tomcat (and get rerouted to another tomcat) Im signed out and the log says something like "Couldnt find session id x in memcached".
I tried to increase the log level like suggested in the wiki but I only see some thing like that
Any idea whats wrong?
Thank you very much.
The text was updated successfully, but these errors were encountered: