2016-01-25 15:55 GMT+01:00 Pavlo Zhuk <[email protected]>:
> Hi dears,
>
>
> I am looking for a feature which allow me to send traffic of the same client
> to the same backend node, even if the node is in a different backend groups.
>
> I know it might sound wierd, but it has good practical benefit for the a/b
> testing flow.
> So a little example:
>
> For instance, there are 3 frontends :  HTTP-in, HTTPS-in and FOOBAR-in
> Each frontend service sends traffic to corresponding backends of HTTP-out,
> HTTPS-out, FOOBAR-out, where each backend has same 3 server configured (just
> on different TCP ports).
>
> So what I want, that same source IP address accessing HTTP-in, HTTPS-in,
> FOOBAR-in will reach same server in different backends.

Hi,

Using a shared stick-table should do the job:

backend ip4sticky
    stick-table type ip size 1m expire 2h

backend ip6sticky
    stick-table type ipv6 size 1m expire 2h

backend http-in
    balance roundrobin
    stick on src table ip4sticky
    stick on src table ip6sticky
    [...]

backend https-in
    balance roundrobin
    stick on src table ip4sticky
    stick on src table ip6sticky
    [...]

etc...

-- 
Jonathan Leroy
http://www.inikup.com/
Tel: +33 (0)9 74 77 41 72

Reply via email to