Welcome! Log In Create A New Profile

Advanced

Re: Nginx urgent query

Maxim Dounin
September 20, 2018 09:16AM
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/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: Nginx urgent query

Devika Awasthi September 19, 2018 09:12AM

Re: Nginx urgent query

Maxim Dounin September 19, 2018 02:24PM

Re: Nginx urgent query

Devika Awasthi September 19, 2018 10:14PM

Re: Nginx urgent query

Devika Awasthi September 20, 2018 01:26AM

Re: Nginx urgent query

Maxim Dounin September 20, 2018 09:16AM

Re: Nginx urgent query

itpp2012 September 20, 2018 09:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
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