Nginx reverse proxy with Weblogic - Sticky learn

Sergey A. Osokin osa at
Tue Feb 22 04:34:40 UTC 2022


hope you're doing well.

On Mon, Feb 21, 2022 at 02:20:01PM -0500, george22 wrote:
> Hi
> I've implemented sticky learn for my weblogic application running on 3
> servers using Nginx as the reverse proxy and trying to get an understanding
> of how nginx sticky learn works. 
> The JSESSIONID cookies are of the form <session identifier>!<primary server
> id 1><!secondar server id 2>. 
> I understand that nginx learns from the 'sticky create' to determine which
> upstream server the request should be routed to using lookup cookie. But it
> is not clear from the documentation what happens when the upstream primary
> server is down. Will nginx route to secondary server? Based on my initial
> tests it looks like it does not route to the secondary server. I need
> confirmation if this is expected behavior. What do I need to do to route
> requests to secondary server if primary server is down using sticky learn? 
> upstream app1 {
>         least_conn;
>         zone app1 64k;
>         server;
>         server;
>         server;
>         sticky learn
>            create=$upstream_cookie_JSESSIONID
>            lookup=$cookie_JSESSIONID
>            zone=client-sessions:1m
>            timeout=2h;
>     }

The sticky [1] directive, from the http_upstream module [2], is the part
of the commercial subscription [3], so I'd recommend to send your
questions and concerns to the NGINX Plus support team, [4].

Thank you.


Sergey A. Osokin

More information about the nginx mailing list