Forum: NGINX jvm route problem

Posted by Li (Guest)
on 2010-02-04 08:14
(Received via mailing list)
Hey guys,

I am using unofficial module named "jvm_route_module" (
http://code.google.com/p/nginx-upstream-jvm-route/) to make my nginx 
support
 sticky session for tomcat through ajp. The compilation and build seems 
fine
without posting any error. But after I configure the upstream with 
jvm_route
support. It produced wired error:
[emerg]: invalid parameter "srun_id" in 
/usr/local/nginx/conf/nginx.conf:180

Here is the upstream configuration
# Tomcat Cluster
upstream katties {
    server 10.201.3.63:8080 srun_id=jvmRoute1;
    server 10.201.3.66:8080 srun_id=jvmRoute2;
    jvm_route $cookie_JSESSIONID|sessionid reverse;
}

I am not sure if this is a proper place to ask this question, but I 
really
cant find any solution so far. Or is there any better solution to 
provide
session sticky for tomcat cluster behind nginx?

Many thanks
Posted by Weibin Yao (Guest)
on 2010-02-04 08:21
(Received via mailing list)
Li at 2010-2-4 15:13 wrote:
> Hey guys,
>
> I am using unofficial module named "jvm_route_module" 
> (http://code.google.com/p/nginx-upstream-jvm-route/) to make my nginx 
> support  sticky session for tomcat through ajp. The compilation and 
> build seems fine without posting any error. But after I configure the 
> upstream with jvm_route support. It produced wired error: 
> [emerg]: invalid parameter "srun_id" in 
> /usr/local/nginx/conf/nginx.conf:180
>
Have you patched  the  nginx?

 patch -p0 < /path/to/this/directory/jvm_route.patch

> to provide session sticky for tomcat cluster behind nginx?
>
> Many thanks
>

--
Weibin Yao
Posted by Li (Guest)
on 2010-02-04 08:22
(Received via mailing list)
yes i had.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.