A question about load balancers and Terracotta clustering

Russell Beall beall at usc.edu
Thu Jun 28 23:08:00 BST 2012


Theoretically, what you are trying to do should work just fine.  This type of thing in my clusters does work.  I'd be inclined to suspect that the Terracotta server nodes are not correctly sharing their session data.

Instead of shutting down both the Terracotta server and the IdP Tomcat server, try just shutting down the Tomcat server only, or simply disabling it in your loadbalancer and then hitting the other node with a login request.

If this doesn't work either, then your sessions are not being shared.

Do the Terracotta server logs recognize when a Tomcat server client is connecting as a participant in the cluster?  Are these connection logs all showing up on a single Terracotta server node?

Regards,
Russ.

On Jun 28, 2012, at 1:58 PM, Wessel, Keith William wrote:

> I know quite a few of you out there have Shib clustered using Terracotta behind a load balancer. We’re in the process of moving our production cluster from round robbin DNS to actual, real hardware load balancing. (much to my and many other folks’ relief).
>  
> I’m doing some testing with our test cluster, and I’m noticing something odd. As recommended, we’re running a Terracotta cluster node on each of our two IDP nodes. I’m logging into a test SP then restarting shibd and Apache to force reauthentication when I refresh the SP webpage in the browser. Before refreshing, I’ll shut down the IDP node that I used to log in the first time. I’ll then wait for Terracotta output on the other IDP to say it’s taken over as the active node. In theory, if my persistent store and the Terracotta cluster is working, it’d seem my IDP session would still be valid. Session lifetime on the IDP has been left at the default 30 minutes. However, I’m getting the login screen from the other IDP node at this point.
>  
> So, if I lost anyone:
> 1.      Log into SP via Shib node 1
> 2.      Once logged in and back at the SP, shut down Tomcat and Terracotta on Shib node 1.
> 3.      Restart shibd and Apache on the SP.
> 4.      Click refresh in the browser which takes me to Shib node 2 via the load balancer
> 5.      Instead of having my existing session honored, I’m getting a login screen.
> FYI, I don’t get the login screen if I just restart shibd and Apache then hit the same IDP node again that I hit the first time, so I know the SP isn’t doing forced re-auth.
>  
> Am I overlooking something here? Is this working as designed? Or does it seem I have a Terracotta misconfiguration somewhere?
>  
> Thanks for any help that anyone can offer.
>  
> Keith
>  
> --
> To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20120628/34553d7c/attachment.html 


More information about the users mailing list