Re: [squid-users] Regarding Reverse proxy and Persistent connection

From: viswa <waytoviswa_at_gmail.com>
Date: Mon, 26 Jul 2010 14:17:32 +0530

hi

Me too want clarification on persistent connection ... i having 3 web
servers and i running squid server with cache_beer round robin for load
balancing ... now i need persistent connection and also the load
balancing ... is it possible ?

Thanks
- Viswa

On 07/26/2010 02:00 PM, Amos Jeffries wrote:
> senthilkumaar2021 wrote:
>> Hi All,
>>
>> I want to setup a reverse proxy for a web server.There are two web
>> servers which has the same content.
>> cache_peer parent 172.16.1.48 80 0 origin-server
>> cache_peer parent 172.16.1.49 80 0 origin-server
>> When client requests a web page if the server 172.16.1.49 serves the
>> first request i want all the connections to be with same server not
>> with 172.16.1.48
>> Is it possible by enabling client_persistent connections on and
>> server_persistent_connections on?
>> If so if i use round-robin in cache_peer also it works
>
> round-robin is the opposite of what you want.
>
> Use the source-hash selection method. This 'pinns' each particular
> client IP to a particular parent proxy.
> The downside is that traffic levels are unbalanced, but it does
> guarantee that as long as your parent proxies are unchanged and alive
> each client is sent out via a fixed parent.
>
> Amos
Received on Mon Jul 26 2010 - 08:53:33 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 26 2010 - 12:00:03 MDT