F
F
f0y2013-10-25 17:36:04
Nginx
f0y, 2013-10-25 17:36:04

Can nginx direct the user to the same node?

Hello!

There is a java application that is deployed on several servers, and nginx balances requests. The bottom line is that the user gets to the same server with which he started working. Experimentally, it was found that this behavior depends on cookies (like jsessionid). That is, after cleaning, cookies are thrown to another server. Is Nginx capable of this? If so, which directive is responsible for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Chernyshev, 2013-10-25
@f0y

code.google.com/p/nginx-sticky-module/
nginx.org/ru/docs/http/ngx_http_upstream_module.html#ip_hash

S
script88, 2013-10-25
@script88

in general, nginx.org/ru/docs/http/ngx_http_upstream_module.html#ip_hash is responsible for this function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question