Maybe you could use the sticky function
http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky
"This directive is available as part of our commercial subscription" [2]
cheers Aleks
Am 16-05-2014 10:17, schrieb gaoping@richinfo.cn:
> ngx_http_upstream_module Load balancing algorithm upstream the instruction ip_hash;
>
> -------------------------
>
> gaoping@richinfo.cn
>
> FROM: Shafreeck Sea
> DATE: 2014-05-16 16:14
> TO: nginx@nginx.org
> SUBJECT: Re: nginx1.4.7 ip_hash load balancing strategy
>
> why ip_hash ?
>
> 2014-05-16 15:29 GMT+08:00 gaoping@richinfo.cn <gaoping@richinfo.cn>:
>
> hi
> When my nginx is below this structure,Nginx access to the IP proxy server by IP, then nginx ip_hash load balancing, will all requests are routed to the same tomcat, do not know if you have what good method to solve the.
> The ip_hash function can be introduced into a custom IP.
> Prerequisite: can not change the existing structure, and nginx access to the IP is only aproxy server, and IP client request is not true,
>
> -------------------------
>
> gaoping@richinfo.cn
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx [1]
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx [1]
Links:
------
[1] http://mailman.nginx.org/mailman/listinfo/nginx
[2] http://nginx.com/products/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx