[squid-users] Load-balancing traffic via more network devices

From: Robert Trebula <trebula@dont-contact.us>
Date: Tue, 15 Jan 2002 15:06:58 +0100

Hello,

can someone give me an advice how to load-balance traffic between several
network devices using squid?

We currently have one permanent ISP connection and are planning to get another
one, with a bandwith equal to the first one.

I am thinking of using squid2.5 tcp_outgoing_address configuration option:

NAME: tcp_outgoing_address
TYPE: acl_address
DEFAULT: none
LOC: Config.accessList.outgoing_address
DOC_START
        Allows you to map requests to different outgoing IP addresses
        based on the username or sourceaddress of the user making
        the request.
 
        tcp_outgoing_address ipaddr [[!]aclname] ...
 
        Example where requests from 10.0.0.0/24 will be forwareded
        with source address 10.1.0.1, 10.0.2.0/24 forwarded with
        source address 10.1.0.2 and the rest will be forwarded with
        source address 10.1.0.3.
 
        acl normal_service_net src 10.0.0.0/255.255.255.0
        acl good_service_net src 10.0.1.0/255.255.255.0
        tcp_outgoing_address 10.0.0.1 normal_service_net
        tcp_outgoing_address 10.0.0.2 good_service_net
        tcp_outgoing_address 10.0.0.3
 
        Processing proceeds in the order specified, and stops at first fully
        matching line.
DOC_END

But I got stuck on a problem of how to assign requests to the ACL. Probably the
best solution would be to assign each request randomly to one of two ACL's and
assign one tcp_outgoing_address to each ACL. Is there a way how to assign
requests to ACL's randomly (or round-robin or whatever like)?

The other way is to assign requests to ACL by their source address, but this
isn't the thing it should be, you know...

Any advice?

Robert

-- 
Bc. Robert TREBULA
ui42 spol. s r.o.
Hrdlickova 16, 831 01 Bratislava, Slovakia
tel.: (+421) 2 5479 3646
mailto:trebula@ui42.sk
http://www.ui42.com
Received on Tue Jan 15 2002 - 07:07:06 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:51 MST