What the main difference between the sticky session available in nginx plus and hashing cookie in open source version?
According to the docs nginx open source allows session persistence based on hashing different global variables available within nginx, including $cookie_
With the following configuration:
upstream myserver {
hash $cookie_sessionID;
server localhost:8092;
server localhost:8093;
server localhost:8094 weight=3;
}
location / {
proxy_pass http://myserver;
}
Assuming, there will be centralized mechanism across backends for generating unique sessionID cookie for all new requests, so what the main disadvantages of such method compared to the nginx plus sticky session approach?
consistent
to the hash configuration, so that it readshash $cookie_sessionID consistent;
; see the following nginx docs: choosing a load-balancing method; option 4. Generic Hash. – Orvhash $cookie_sessionID consistent;
on nginx opensource? – Munos