[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Session Failover not working  XML
Forum Index -> Terracotta for Web Sessions
Author Message
terracha

journeyman

Joined: 09/14/2012 09:12:06
Messages: 32
Offline

Hi,

We are having an issue on our site with losing session data and I am doing a test on our staging environment which has the following:

- Terracotta 3.4.1
- Apache 2.2
- Mod_jk 1.28 I believe
- 2 tomcat instances

I try the following test. Log into our site, check our JSessionID cookie to see which tomcat worker I'm on, kill that tomcat worker.

Expected behavior: I can continue using our site like nothing happened.
Actual behavior: I get sent back to our log in page.

I'm not sure if this ever worked but then I saw this article:

http://forums.terracotta.org/forums/posts/list/202.page

Could somebody elaborate on that article if I need to do this. If my tomcat worker names are tomcat2 and tomcat3, do I put the following in my tomcat environment variables:

-Dcom.terracotta.session.serverid=.tomcat2

Any suggestions are appreciated!

Cheers!
terracha

journeyman

Joined: 09/14/2012 09:12:06
Messages: 32
Offline

Actually, found the issue. Web sessions was not activated in our staging environment.

Tried the same thing in our production environment when I got a chance and noticed we failed over when requests hit the same web server but it seems we might not be failing over when we go to a different web server which I need to test.

Thanks,
Charles
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team