or better using stud or stunnel with HAProxy's proxy protocol implementation.
so balance source will work.

cheers


On Thu, Jan 24, 2013 at 12:12 PM, Chris Sarginson <[email protected]> wrote:
> On 24/01/2013 11:06, James Bensley wrote:
>>
>> Hi All,
>>
>> I have Pound Proxy and HAProxy on the same box; HTTPS requests come
>> into Pound, Pound then passes them using plan text HTTP to HAProxy
>> listening on 127.0.0.1, HAProxy then balances the connections across
>> the back end servers. Plain text HTTP requests that come into the box
>> and go strait to HAProxy, no Pound, I am just suing Pound for some
>> HTTPS shenanigans.
>>
>> I can see in my logs that all requests from 127.0.0.1 (so HTTPS
>> requests via Pound) are always sent to the same back end server
>> (server2). HTTP requests that come from all different IPs directly
>> into HAProxy are being balanced over back end server1 and server2. I
>> assume this is possibly because 127.0.0.1 always passes through the
>> balancing hash algorithm (or whatever HAProxy uses) and comes out with
>> the same value each time.
>>
>> Is there anything I can do about this?
>>
>> Kind regards,
>> James.
>>
> Sounds like you are using source IP to balance connections, rather than
> cookie based sessions.  If you want help you will need to provide your
> haproxy configuration however.
>
> Chris
>

Reply via email to