Setting up proxy peers like HAproxy?

With HAproxy, if you use multiple proxies you can synchronize their
states:

https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#3.5

This allows, for example, if you’re load balancing based on a header
value, to make sure all clients sending the same header value will end
up connecting to the same backend node.

Is something like this doable with Nginx?


Florin Andrei
http://florin.myip.org/

Hello Florin,

i’m not sure how HAproxy works, but this sounds like sticky sessions.

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky

Kind regards

Alexander
Am 23.04.2016 2:23 vorm. schrieb “Florin Andrei”
[email protected]:

Hi Florin Andrei.

Am 23-04-2016 02:22, schrieb Florin Andrei:

With HAproxy, if you use multiple proxies you can synchronize their
states:

HAProxy version 1.5.18 - Configuration Manual

This allows, for example, if you’re load balancing based on a header
value, to make sure all clients sending the same header value will end
up connecting to the same backend node.

Is something like this doable with Nginx?

As far a I know nginx nor n+ have a similar option.

I think the most closest solution is something like a combination with
set & memcache.

http://nginx.org/en/docs/http/ngx_http_map_module.html
http://nginx.org/en/docs/http/ngx_http_memcached_module.html

Just try this search Startpage Search Results

Best regards
Aleks