RE: [squid-users] load balancing two squid boxes howto?

From: Edgard Haddad <edgard.haddad@dont-contact.us>
Date: Mon, 3 Jun 2002 09:41:49 +0300

Hi,

You have many solutions! It depends on your budget of course...
1- The cheapest and best (I highly recommend this way)
Prepare a third machine with Squid
Configure Squid to load balance requests to two parents
--------------------------------------------------------------------
cache_peer 10.10.10.10 parent 8080 7 proxy-only no-query round-robin
cache_peer 10.10.10.11 parent 8080 7 proxy-only no-query round-robin
--------------------------------------------------------------------
Disable any object caching
Configure the peers as neighbors so the same objects will not be cached
on two servers.
This way has many advantages since it will load balance requests and
offer automatic fail-over.
2- You can use "balance", a utility that comes as a port with the
distribution
3- You can use a hardware device like Cisco CS1100 or Alteon Ace
Director series
...

Regards,

__________________________________________
 
Edgard B Haddad
Systems Administrator
SPSNET - KSA's Internet Service Provider
Jeddah - Saudi Arabia - +966 2 682 4556
Edgard.Haddad@sps.net.sa
Admin@sps.net.sa
__________________________________________
 

-----Original Message-----
From: richard.fuser@ernstyoung.com.au
[mailto:richard.fuser@ernstyoung.com.au]
Sent: Monday, June 03, 2002 9:14 AM
To: jay omayan
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] load balancing two squid boxes howto?

This email is to be read subject to the disclaimer below.

Hi There,

We use a very simple method of load balancing and not to mention very
cheap!!

We have 4 dns entries for 2 servers:

proxy: 10.0.0.1, 10.0.0.2 (2 entries with different IP's)
proxy1: 10.0.0.1
proxy2: 10.0.0.2

When we hand out the proxy server hostname to the browser via a
proxy.pac
we hand out the hostname "proxy" when the dns lookup is done it will get
a
response as shown below.

> proxy
Server: dns.server.com
Address: 10.0.0.22

Name: proxy.server.com
Addresses: 10.0.0.2, 10.0.0.1

This will be alternate so the next time around you will get 10.0.0.1 as
the
first address, which means this splits up the requests between the 2
servers.

We also pass multiple addresses to the browser with the .pac in case...

Please this is a very simple load balancing idea and does not offer
really
anything apart from roughly splitting the requests for the 2 proxys, in
our
case this works great.

Hope this helps / makes sense....

Regards,
Richard Fuser
Firewall & UNIX Systems Administrator

 

                    jay omayan

                    <xjhay@yahoo. To:
squid-users@squid-cache.org

                    com> cc:

                                         Subject: [squid-users] load
balancing two squid boxes howto?
                    03/06/2002

                    03:37 PM

 

 

greetings!

squid is very succesfull in terms of faster internet
and bandwidth savings to us...since our network is
gettings bigger i need to have two squid boxes...
my problem is how do i loadbalance two squid boxes?

any help would be appreciated...

thanks

Jay Omayan
IT Officer
scoobysNET/Bohol-Online/iCyberscape
Philippines

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--------------------
NOTICE - This communication contains information which is confidential
and
the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please
delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose or distribute this communication without the
authority of Ernst & Young.

Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views
of
Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant
and/or
guarantee that the integrity of this communication has been maintained
nor
that the communication is free of errors, virus, interception or
interference.

Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.362 / Virus Database: 199 - Release Date: 5/7/2002
 
Received on Mon Jun 03 2002 - 00:41:13 MDT

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