[Deploying Sakai] Can't log in with clustering

Kusnetz, Jeremy JKusnetz at APUS.EDU
Thu Mar 18 06:09:42 PDT 2010

This works!  I also did not touch jvmRoutes in the tomcat config as


Should this be added to the documentation?  It doesn't mention using
route=serverId under:




Configuring mod_proxy_ajp

AJP, or the The Apache Jserv protocol is the protocol by which tomcat
and some other proxying service (Apache or a dedicated hardware load
balancer) communicate. If you intend to use apache to provide other
static content or to handle SSL, you may want to configure Tomcat to
listen for AJP requests, and the have Apache proxy requests for tomcat
using AJP rather than HTTP or HTTPS. To do this, you will need to do the

1.	enable the AJP connector for one or more tomcat installations by
editing TOMCAT_HOME/conf/server.xml and uncommenting the AJP connector
included with the default distribution:

<Connector enableLookups="false" port="8009" protocol="AJP/1.3"


If you are load balancing multiple tomcat instances on the same server,
you will need to ensure that each one listens for AJP requests on a
different IP address and/or port.

2.	You can load balance requests between tomcat instances by adding
something like the following to your Apache httpd.conf: 

3.  ProxyPass / balancer://sakaiCluster/ stickysession=JSESSIONID

4.  <Proxy balancer://sakaiCluster>

5.  BalancerMember ajp://localhost:8009

6.  BalancerMember ajp://localhost:8019

7.  BalancerMember ajp://localhost:8029


You must have mod_proxy, mod_proxy_ajp, and mod_balancer enabled to use
the above configuration options. It has also been noted that versions of
mod_proxy_balancer prior to 2.2.4 have errors with this configuration.



-----Original Message-----
From: Martin B. Smith [mailto:smithmb at ufl.edu] 
Sent: Wednesday, March 17, 2010 11:10 PM
To: Kusnetz, Jeremy
Cc: production at collab.sakaiproject.org
Subject: Re: [Deploying Sakai] Can't log in with clustering


On 3/17/2010 8:41 PM, Kusnetz, Jeremy wrote:

> I think that is what the problem is, I won't be able to try it out
until the morning, fingers crossed!


> I googled jvmroute and balancermember and came up with this thread,
this is exactly what I'm seeing:




> I'll let you know if this works.




Hi Jeremy,


FWIW, I discovered that if I set serverId in sakai.properties, I could

omit jvmroute -- it appeared to be the same as the serverId property. I

did test using jvmroute, but the JSESSIONID cookie didn't look any



If it helps for you to follow conventions, our convention is using the

FQDN for each application server as the route, and setting serverId to

the same value. It also helps users and support staff see which node

they're on by putting that name in the footer of every page.


Keep us posted,


Martin B. Smith

smithmb at ufl.edu - (352) 273-1374

CNS/Open Systems Group

University of Florida

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20100318/64be88af/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 569 bytes
Desc: image001.gif
Url : http://collab.sakaiproject.org/pipermail/production/attachments/20100318/64be88af/attachment.gif 

More information about the production mailing list