Nginx urgent query
Maxim Dounin
mdounin at mdounin.ru
Thu Sep 20 13:14:28 UTC 2018
Hello!
On Thu, Sep 20, 2018 at 10:55:26AM +0530, Devika Awasthi wrote:
> Many Thanks Maxim,
>
> But we did try to achieve the functionality by using - nginx=1.10.3-r1, we
> couldn't get request based session stickiness.
> Basically we want the requests with identical query params to hit the same
> instance everytime.
>
> By recompiling again with this module and using below config it worked:
>
> upstream load_balancer { hash $scheme$proxy_host$request_uri$is_args$args
> consistent; server 127.0.0.1:9003; server 127.0.0.1:9004; } server { listen
> 8081; server_name localhost; access_log /usr/local/var/log/nginx/access.log;
> location / { proxy_pass http://load_balancer }
> Do you think we are missing anything here?
First of all you may want to define how do you expect it to work
and how do you test if it worked or not.
It also not clear what do you mean by "recompiling again with this
module". As I already wrote, the module is compiled in by
default.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list