Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy with Weblogic - Sticky learn

February 21, 2022 02:20PM
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 srv1.example.com:5111;
server srv2.example.com:5111;
server srv3.example.com:5111;
sticky learn
create=$upstream_cookie_JSESSIONID
lookup=$cookie_JSESSIONID
zone=client-sessions:1m
timeout=2h;
}


Thanks.
Subject Author Posted

Nginx reverse proxy with Weblogic - Sticky learn

george22 February 21, 2022 02:20PM

Re: Nginx reverse proxy with Weblogic - Sticky learn

Sergey A. Osokin February 21, 2022 11:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready