Background :
We have nginx setup to loadbalance requests to Jira and we had a successful implementation using Sticky learn. However considering the sticky route method as mentioned in Atlassian documentation we were unable to achieve success.
Problem :
When Sticky route is being used we are being redirected to the login page every time we try to login.
Details :
Nginx conf :
map $cookie_jsessionid $route_cookie {
~.+\.(?P<route>\w+)$ $route;}
map $request_uri $route_uri {
~jsessionid=.+\.(?P<route>\w+)$ $route;}
upstream jiracluster {
zone jiracluster 64k;
server hostname1:port route=node1;
server hostname2:port route=node2;
#sticky learn create=$upstream_cookie_JSESSIONID
# lookup=$cookie_JSESSIONID
# zone=client_sessions1:1m
# timeout=1h;
sticky route $route_cookie $route_uri;
Please note: the commented Sticky learn method works perfectly! We are trying to study the behavior of Sticky route.
Does atlassian recommend only Sticky Route ? or is Sticky learn also fine to use as it supports session affinity.
Please let me know if any further information will be helpful to better understanding the issue.