Search squid archive

RE: [squid-users] loadbalancing multiple uplinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Hendrik Voigtländer [mailto:hendrik@xxxxxxxxxxxxxxxxx]
> Sent: Thursday, May 12, 2005 7:33 AM
> To: Chris Robertson
> Cc: Squid Users
> Subject: Re: [squid-users] loadbalancing multiple uplinks
> 
> 
>> 
>> 
>> If you figure out how to differentiate traffic on the outer squid (I
imagine
>> that it sees traffic as all sourced from the firewall IP) then the
>> tcp_outgoing_address would do what you want...
>> 
> Sort of :-) All traffic comes from one IP, but I could split the traffic 
> using regex acls (e.g. hi/lo traffic sites, ftp/http...)
> 
> But what next? Souce based routing? I am not very familiar with this...
> 
> Regards, Hendrik Voigtländer

Warning, this is a completely lame example, and I have no idea how well (or
poorly) it would average the traffic over two links.  The basic idea here is
that all sites that begin with the letters A through K (amazon.com,
www.eBay.com, etc.) go out one link.  Everything L through Z goes out the
other.

acl AtoK dstdom_regex -i ^(www\.)+[a-k]  # Match a potential leading www.
tcp_outgoing_address 192.168.1.1   AtoK  # A-K uses one link
tcp_outgoing_address 10.1.1.1     !AtoK  # L-Z uses the other

Again, I have no idea of how well this would work at balancing traffic, but
it would keep all requests to one server on one outbound link.  *shrug*

Chris


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux