AJP/mod_jk load balancing in a cluster - sticky sessions not so sticky
I've setup a 2 instance cluster and I'm trying to get AJP/mod_jk loadbalancing to work. I followed the instructions here:
and was able to get the jvmRoute stuff working after reading this thread and installing the patch:
My problem now is that my sessions are not sticky, it keeps going round robin between the 2 instances instead of sticking to the same server instance. Using a firefox plugin, I had a look at the http request/response headers and it seems like I'm getting a new JSESSIONID back from the server with every request. I think this is the problem because every request starts a new session.
Any help will be greatly appreciated.
Here is my workers.properties :
and the relevant part from httpd.conf:
JkMount /* loadbalancer