Hi Alek,

I want to balance via round-robin, but I want stick-tables to use the 
X-Forwarded-For header instead of src ip.  It makes sense in our use case 
because a vast majority of our clients are behind a NAT and have the same 
source IP, but the X-Forwarded-For header is unique to them.

Thanks,
Trent

-----Original Message-----
From: Aleksandar Lazic [mailto:[email protected]] 
Sent: Tuesday, July 25, 2017 11:20 AM
To: Trenton Dyck
Cc: [email protected]
Subject: Re: X-Forwarded-For Balancing

Hi Trenton,

Trenton Dyck wrote on 25.07.2017:

> Hi,
>  
> Is it possible to balance, via X-Forwarded-For header?  We have come 
> across an issue with sticky-sessions and server weight that I can't 
> seem to find the answer to online (Unbalanced traffic).  I think 
> stick-tables with this acl option  would be nice to have for a future version.

http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4-balance

Something like this

balance hdr(X-Forwarded-For)

Does it make sense to balance based on this header?!
What's the issue you want to solve?

What do you mean with "stick-tables with this acl option"?

> Please keep met CCed for responses since I'm not subscribed.
>  
> Thanks,
>
> Trent

--
Best Regards
Aleks


Reply via email to