[squid-users] question about surrogate pooling/conf

From: Chow mae <chow233@dont-contact.us>
Date: Sat, 15 Jan 2005 19:51:11 +0000

Hey all --

This might have been answered in the past, but I'm having a hard time
finding an exact match for my situation in the archives. Part of this
question is squid config, but could be architecture as well.

4 origin webservers: logo1.blah.com, logo2.blah.com, logo3.blah.com,
logo4.blah.com, each running a straighforward apache conf, each with unique
content (but similar...all images) on their filesystems. (merging the
storage or content from all into one place/server isn't a possibility)

In front of them, a pool of squids, say 3-5 of them, to accelerate the
backend origin servers. They will be a load-balanced pool, and URL hash
will be the distributing algorithm. the load-balancers VIP (and DNS on that
subnet) will be such that it will answer on that same VIP for requests for
URLs for logo1, logo2, logo3, logo4, sending on to the squids.

Now the question is: if I use http_accel_uses_host_header on, and the
squids have the real IPs in /etc/hosts for logo1-4, then the squids should
just be able to hit each of the origin servers on the backend fine, assuming
that the requests have host headers for logo1-4, correct ?

and would there be anything special about having the squid pool take the
incoming requests on one interface/IP (seen by the load balancer), and
having

(front subnet, front interface of load balancer)
VIP of load balancer: 10.10.10.10
logo1.blah.com thru logo4.blah.com all point (via DNS) to 10.10.10.10

(second subnet, second interface of LB)
squid1 thru squid 4, with IPs of 10.20.10.10 thru 10.20.10.13

(third subnet)
logo1.blah.com thru logo4.blah.com, IPs of 10.30.10.10-13

the third subnet is most likely an overkill complication, but I'm looking
towards being as horizontal as possible, scaling-wise. having the 3rd
subnet really isn't important at this point, or part of my question, which
again is:

Can I just set "http_accel_uses_host_headers on" and be done with it, given
the above ? the load balancing and URLhashing and networking, I've done
before, with great success. It's only the having multiple origin servers
with multiple IPs that I have less experience with.

sorry for the verbosity of the question, and thanks in advance!

--mike

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Received on Sat Jan 15 2005 - 12:52:09 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 07 2005 - 12:59:35 MST